version 1.3, 2001/02/04 15:32:25 |
version 1.4, 2001/02/04 21:41:21 |
|
|
char **path1, char **path2) |
char **path1, char **path2) |
{ |
{ |
const char *cmd, *cp = *cpp; |
const char *cmd, *cp = *cpp; |
|
int base = 0; |
int i, cmdnum; |
int i, cmdnum; |
|
|
/* Skip leading whitespace */ |
/* Skip leading whitespace */ |
|
|
break; |
break; |
case I_LUMASK: |
case I_LUMASK: |
case I_CHMOD: |
case I_CHMOD: |
|
base = 8; |
case I_CHOWN: |
case I_CHOWN: |
case I_CHGRP: |
case I_CHGRP: |
/* Get numeric arg (mandatory) */ |
/* Get numeric arg (mandatory) */ |
|
|
"to the %s command.", cmd); |
"to the %s command.", cmd); |
return(-1); |
return(-1); |
} |
} |
*n_arg = strtoul(cp, (char**)&cp, 0); |
*n_arg = strtoul(cp, (char**)&cp, base); |
if (!*cp || !strchr(WHITESPACE, *cp)) { |
if (!*cp || !strchr(WHITESPACE, *cp)) { |
error("You must supply a numeric argument " |
error("You must supply a numeric argument " |
"to the %s command.", cmd); |
"to the %s command.", cmd); |