[BACK]Return to setmode.c CVS log [TXT][DIR] 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.

Diff for /src/lib/libc/gen/setmode.c between version 1.20 and 1.21

version 1.20, 1998/02/27 18:36:43 version 1.21, 1999/03/16 18:13:46
Line 214  setmode(p)
Line 214  setmode(p)
          * 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);

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

CVSweb <webmaster@jp.NetBSD.org>