From 913372adbd2049b948f2930515ecc131b100c6ea Mon Sep 17 00:00:00 2001 From: Stefan Behrens Date: Tue, 9 Apr 2013 19:08:44 +0200 Subject: [PATCH] Btrfs-progs: allow to receive to relative directories Signed-off-by: Stefan Behrens --- cmds-receive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-receive.c b/cmds-receive.c index 1cf0da2..937db1c 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -756,7 +756,7 @@ static int process_utimes(const char *path, struct timespec *at, tv[0] = *at; tv[1] = *mt; - ret = utimensat(-1, full_path, tv, AT_SYMLINK_NOFOLLOW); + ret = utimensat(AT_FDCWD, full_path, tv, AT_SYMLINK_NOFOLLOW); if (ret < 0) { ret = -errno; fprintf(stderr, "ERROR: utimes %s failed. %s\n", -- 2.7.4