From 64510a42616e7cee971c15d3889326d901379426 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Fri, 18 Jan 2019 22:45:40 +0300 Subject: [PATCH] Fix remote rename command --- src/utils/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/file.c b/src/utils/file.c index d8663ece..d0064c2a 100644 --- a/src/utils/file.c +++ b/src/utils/file.c @@ -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));