You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-15 07:04:14 +02:00
Fix remote rename command
This commit is contained in:
@ -914,7 +914,7 @@ void fio_communicate(int in, int out)
|
|||||||
IO_CHECK(fio_write_all(out, &hdr, sizeof(hdr)), sizeof(hdr));
|
IO_CHECK(fio_write_all(out, &hdr, sizeof(hdr)), sizeof(hdr));
|
||||||
break;
|
break;
|
||||||
case FIO_RENAME:
|
case FIO_RENAME:
|
||||||
SYS_CHECK(rename(buf, buf + strlen(buf)));
|
SYS_CHECK(rename(buf, buf + strlen(buf) + 1));
|
||||||
break;
|
break;
|
||||||
case FIO_UNLINK:
|
case FIO_UNLINK:
|
||||||
SYS_CHECK(unlink(buf));
|
SYS_CHECK(unlink(buf));
|
||||||
|
Reference in New Issue
Block a user