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/chgrp.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/chgrp.c')
-rw-r--r-- | coreutils/chgrp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c index 2f3fa4197..8c969d7b6 100644 --- a/coreutils/chgrp.c +++ b/coreutils/chgrp.c | |||
@@ -59,10 +59,7 @@ int chgrp_main(int argc, char **argv) | |||
59 | argv += optind; | 59 | argv += optind; |
60 | 60 | ||
61 | /* Find the selected group */ | 61 | /* Find the selected group */ |
62 | gid = strtoul(*argv, &p, 10); /* maybe it's already numeric */ | 62 | gid = get_ug_id(*argv, my_getgrnam); |
63 | if (*p || (p == *argv)) { /* trailing chars or nonnumeric */ | ||
64 | gid = my_getgrnam(*argv); | ||
65 | } | ||
66 | ++argv; | 63 | ++argv; |
67 | 64 | ||
68 | /* Ok, ready to do the deed now */ | 65 | /* Ok, ready to do the deed now */ |