summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmds-receive.c2
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",