From d9a1030d5732da2c86ce44fb388b20a96f5c82ed Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 4 Mar 2014 11:02:03 +0000 Subject: [PATCH] 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". --- chmod.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/chmod.c b/chmod.c index abedb53..74d7c15 100644 --- a/chmod.c +++ b/chmod.c @@ -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) {