1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 23:43:33 +00:00

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

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) {