summaryrefslogtreecommitdiff
path: root/chmod_chown_chgrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'chmod_chown_chgrp.c')
-rw-r--r--chmod_chown_chgrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c
index c9ea39b..75db904 100644
--- a/chmod_chown_chgrp.c
+++ b/chmod_chown_chgrp.c
@@ -55,7 +55,7 @@ static int fileAction(const char *fileName, struct stat* statbuf)
switch (whichApp) {
case CHGRP_APP:
case CHOWN_APP:
- if (chown(fileName, (whichApp==CHOWN_APP)? uid : statbuf->st_uid,
+ if (lchown(fileName, (whichApp==CHOWN_APP)? uid : statbuf->st_uid,
(gid==-1)? statbuf->st_gid : gid) == 0) {
return( TRUE);
}