* [PATCH] btrfs-progs: Receive: preserve ownership for symlinks, by using 'lchown'
@ 2012-10-17 13:53 Alex Lyakas
0 siblings, 0 replies; only message in thread
From: Alex Lyakas @ 2012-10-17 13:53 UTC (permalink / raw)
To: linux-btrfs, chris.mason, Jan Schmidt; +Cc: Arne Jansen
Signed-off-by: Alex Lyakas <alex.btrfs@zadarastorage.com>
diff --git a/cmds-receive.c b/cmds-receive.c
index 6b7cf12..a6a6a5b 100644
--- a/cmds-receive.c
+++ b/cmds-receive.c
@@ -731,7 +731,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",
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-17 13:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-17 13:53 [PATCH] btrfs-progs: Receive: preserve ownership for symlinks, by using 'lchown' Alex Lyakas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).