[hackers] [sbase] We do symbolic options for chmod(1) || sin
commit d9a1030d5732da2c86ce44fb388b20a96f5c82ed
Author: sin <sin_AT_2f30.org>
Date: Tue Mar 4 11:02:03 2014 +0000
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".
diff --git a/chmod.c b/chmod.c
index abedb53..74d7c15 100644
--- a/chmod.c
+++ b/chmod.c
_AT_@ -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
");
}
for(p = str; *p; p++)
switch(*p) {
Received on Tue Mar 04 2014 - 12:05:05 CET
This archive was generated by hypermail 2.3.0
: Tue Mar 04 2014 - 12:12:16 CET