Add the "install" applet, move get_ug_id to libbb as its used by chown,
chgrp and install.
This commit is contained in:
parent
d72e34c752
commit
eebcc1d98a
10 changed files with 155 additions and 18 deletions
|
@ -59,10 +59,7 @@ int chgrp_main(int argc, char **argv)
|
|||
argv += optind;
|
||||
|
||||
/* Find the selected group */
|
||||
gid = strtoul(*argv, &p, 10); /* maybe it's already numeric */
|
||||
if (*p || (p == *argv)) { /* trailing chars or nonnumeric */
|
||||
gid = my_getgrnam(*argv);
|
||||
}
|
||||
gid = get_ug_id(*argv, my_getgrnam);
|
||||
++argv;
|
||||
|
||||
/* Ok, ready to do the deed now */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue