1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-19 11:30:07 +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));
break;
case FIO_RENAME:
SYS_CHECK(rename(buf, buf + strlen(buf)));
SYS_CHECK(rename(buf, buf + strlen(buf) + 1));
break;
case FIO_UNLINK:
SYS_CHECK(unlink(buf));