aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-receive.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2013-04-09 19:08:44 +0200
committerDavid Sterba <dsterba@suse.cz>2013-04-23 18:56:25 +0200
commit913372adbd2049b948f2930515ecc131b100c6ea (patch)
treedd9ea884ca4516c8811363b71a09a48df47435b7 /cmds-receive.c
parente6e1209254011ce397a2a83ee1bb8f553d3f2741 (diff)
downloadbtrfs-progs-913372adbd2049b948f2930515ecc131b100c6ea.tar.gz
btrfs-progs-913372adbd2049b948f2930515ecc131b100c6ea.tar.xz
btrfs-progs-913372adbd2049b948f2930515ecc131b100c6ea.zip
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.c2
1 files changed, 1 insertions, 1 deletions
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",