1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-31 12:33:33 +02:00

Fix remote rename command

This commit is contained in:
Konstantin Knizhnik 2019-01-18 22:45:40 +03:00
parent e02b7f7c92
commit 64510a4261

View File

@ -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));