diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-24 03:22:57 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-24 03:22:57 +0000 |
commit | eebcc1d98a9901ff69ffb97ba99bccd36666000f (patch) | |
tree | ad1e21191b4aef5ff0c0fa9c30717e77d023cc5d /coreutils/chown.c | |
parent | d72e34c7524a947ba004afff91272c27549b3085 (diff) | |
download | busybox-w32-eebcc1d98a9901ff69ffb97ba99bccd36666000f.tar.gz busybox-w32-eebcc1d98a9901ff69ffb97ba99bccd36666000f.tar.bz2 busybox-w32-eebcc1d98a9901ff69ffb97ba99bccd36666000f.zip |
Add the "install" applet, move get_ug_id to libbb as its used by chown,
chgrp and install.
Diffstat (limited to 'coreutils/chown.c')
-rw-r--r-- | coreutils/chown.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c index 02b752474..07d673f28 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -53,19 +53,6 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk) | |||
53 | #define FLAG_R 1 | 53 | #define FLAG_R 1 |
54 | #define FLAG_h 2 | 54 | #define FLAG_h 2 |
55 | 55 | ||
56 | static unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *)) | ||
57 | { | ||
58 | unsigned long r; | ||
59 | char *p; | ||
60 | |||
61 | r = strtoul(s, &p, 10); | ||
62 | if (*p || (s == p)) { | ||
63 | r = my_getxxnam(s); | ||
64 | } | ||
65 | |||
66 | return r; | ||
67 | } | ||
68 | |||
69 | int chown_main(int argc, char **argv) | 56 | int chown_main(int argc, char **argv) |
70 | { | 57 | { |
71 | int flags; | 58 | int flags; |