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

@ -53,19 +53,6 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
#define FLAG_R 1
#define FLAG_h 2
static unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *))
{
unsigned long r;
char *p;
r = strtoul(s, &p, 10);
if (*p || (s == p)) {
r = my_getxxnam(s);
}
return r;
}
int chown_main(int argc, char **argv)
{
int flags;