diff options
author | Alex Lyakas <alex.btrfs@zadarastorage.com> | 2012-10-17 15:53:58 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-01-17 18:27:54 +0100 |
commit | e1a97972ac2b52f8bcb85682b0376346a35e3cf5 (patch) | |
tree | 583a0cfdc6070a9cab1d0ef03c6fea47b143b9f1 /cmds-receive.c | |
parent | 0b0a954e4383d2074c499523e2aa89527e5ac053 (diff) |
btrfs-progs: Receive: preserve ownership for symlinks, by using 'lchown'
Signed-off-by: Alex Lyakas <alex.btrfs@zadarastorage.com>
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 a21c0376..37d07dbb 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -725,7 +725,7 @@ static int process_chown(const char *path, u64 uid, u64 gid, void *user) fprintf(stderr, "chown %s - uid=%llu, gid=%llu\n", path, uid, gid); - ret = chown(full_path, uid, gid); + ret = lchown(full_path, uid, gid); if (ret < 0) { ret = -errno; fprintf(stderr, "ERROR: chown %s failed. %s\n", |