diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-04-09 19:08:44 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-04-23 18:56:25 +0200 |
commit | 913372adbd2049b948f2930515ecc131b100c6ea (patch) | |
tree | dd9ea884ca4516c8811363b71a09a48df47435b7 /cmds-receive.c | |
parent | e6e1209254011ce397a2a83ee1bb8f553d3f2741 (diff) |
Btrfs-progs: allow to receive to relative directories
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Diffstat (limited to 'cmds-receive.c')
-rw-r--r-- | cmds-receive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-receive.c b/cmds-receive.c index 1cf0da2f..937db1cf 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", |