Return to setmode.c CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / gen |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.20, 1998/02/27 18:36:43 | version 1.21, 1999/03/16 18:13:46 | ||
---|---|---|---|
|
|
||
* If an absolute number, get it and return; disallow non-octal digits | * If an absolute number, get it and return; disallow non-octal digits | ||
* or illegal bits. | * or illegal bits. | ||
*/ | */ | ||
if (isdigit(*p)) { | if (isdigit((unsigned char)*p)) { | ||
perm = (mode_t)strtol(p, NULL, 8); | perm = (mode_t)strtol(p, NULL, 8); | ||
if (perm & ~(STANDARD_BITS|S_ISTXT)) { | if (perm & ~(STANDARD_BITS|S_ISTXT)) { | ||
free(saveset); | free(saveset); |