Btrfs-progs: allow to receive to relative directories
authorStefan Behrens <sbehrens@giantdisaster.de>
Tue, 9 Apr 2013 17:08:44 +0000 (19:08 +0200)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:25 +0000 (18:56 +0200)
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
cmds-receive.c

index 1cf0da2..937db1c 100644 (file)
@@ -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",