Add the "install" applet, move get_ug_id to libbb as its used by chown,

chgrp and install.
This commit is contained in:
Glenn L McGrath 2003-09-24 03:22:57 +00:00
parent d72e34c752
commit eebcc1d98a
10 changed files with 155 additions and 18 deletions

View file

@ -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 */