aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chgrp.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-07-20 19:31:07 +0000
committerMike Frysinger <vapier@gentoo.org>2006-07-20 19:31:07 +0000
commit8840759c6147277a1e8b1c2a315e42daf4e0b794 (patch)
tree7327a27989e75b2ec938bde8d64e6043f613bb64 /coreutils/chgrp.c
parenteea561871b45a2335ab6a09f14dad627ffcdc1cd (diff)
downloadbusybox-w32-8840759c6147277a1e8b1c2a315e42daf4e0b794.tar.gz
busybox-w32-8840759c6147277a1e8b1c2a315e42daf4e0b794.tar.bz2
busybox-w32-8840759c6147277a1e8b1c2a315e42daf4e0b794.zip
move lchown/chown define out of specific files and into platform.h where it belongs
Diffstat (limited to 'coreutils/chgrp.c')
-rw-r--r--coreutils/chgrp.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c
index 46db4081a..5064f2d6e 100644
--- a/coreutils/chgrp.c
+++ b/coreutils/chgrp.c
@@ -16,11 +16,6 @@
16#include <unistd.h> 16#include <unistd.h>
17#include "busybox.h" 17#include "busybox.h"
18 18
19/* Don't use lchown glibc older then 2.1.x */
20#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)
21#define lchown chown
22#endif
23
24static int fileAction(const char *fileName, struct stat *statbuf, void* junk) 19static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
25{ 20{
26 if (lchown(fileName, statbuf->st_uid, *((long *) junk)) == 0) { 21 if (lchown(fileName, statbuf->st_uid, *((long *) junk)) == 0) {