diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-09-24 03:22:57 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-09-24 03:22:57 +0000 |
commit | ab96005684675240c7afc36c3547dfd4bfb99f23 (patch) | |
tree | ad1e21191b4aef5ff0c0fa9c30717e77d023cc5d /coreutils/chgrp.c | |
parent | 9c678a9d982552ed14f26255781d16c58fbf9bc9 (diff) | |
download | busybox-w32-ab96005684675240c7afc36c3547dfd4bfb99f23.tar.gz busybox-w32-ab96005684675240c7afc36c3547dfd4bfb99f23.tar.bz2 busybox-w32-ab96005684675240c7afc36c3547dfd4bfb99f23.zip |
Add the "install" applet, move get_ug_id to libbb as its used by chown,
chgrp and install.
git-svn-id: svn://busybox.net/trunk/busybox@7557 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 */ |