projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
convert() is used by dos2unix and unix2dos
[oweals/busybox.git]
/
chmod_chown_chgrp.c
diff --git
a/chmod_chown_chgrp.c
b/chmod_chown_chgrp.c
index 4fc986904fb5a82cdad9993702c65d1eb11c8baa..9714e1ca57ed84a017dfe1294dc23e137f4c93bf 100644
(file)
--- 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,