We do symbolic options for chmod(1)

Don't bomb out if the argument is not a valid octal number, it
could very well be something like "chmod +x test".
This commit is contained in:
sin 2014-03-04 11:02:03 +00:00
parent 760690c85e
commit d9a1030d57
1 changed files with 0 additions and 2 deletions

View File

@ -107,8 +107,6 @@ parsemode(const char *str)
if(octal & 00002) mode |= S_IWOTH;
if(octal & 00001) mode |= S_IXOTH;
return;
} else {
eprintf("not octal\n");
}
for(p = str; *p; p++)
switch(*p) {