aboutsummaryrefslogtreecommitdiff
path: root/chmod_chown_chgrp.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-09 23:52:18 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-09 23:52:18 +0000
commitb6b519b416189202d18d888d61d8bbe50dc30325 (patch)
treee04e4a2329b9cf5c96b31fa064e6c85dfb8b9055 /chmod_chown_chgrp.c
parentd3f97f19718fa5890cb6cb3fd010f7b4a7bd3ae1 (diff)
downloadbusybox-b6b519b416189202d18d888d61d8bbe50dc30325.tar.gz
Update how we detect if libc5 is in use.
-Erik
Diffstat (limited to 'chmod_chown_chgrp.c')
-rw-r--r--chmod_chown_chgrp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c
index 4fc986904..9714e1ca5 100644
--- a/chmod_chown_chgrp.c
+++ b/chmod_chown_chgrp.c
@@ -49,6 +49,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
switch (whichApp) {
case CHGRP_APP:
case CHOWN_APP:
+ /* Don't use lchown for libc5 or glibc older then 2.1.x */
#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
if (lchown
(fileName, (whichApp == CHOWN_APP) ? uid : statbuf->st_uid,