whoops, chmod =

This commit is contained in:
Connor Lane Smith 2011-06-11 00:31:44 +01:00
parent 26723ba0dc
commit 0cca0c209b
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ chmodr(const char *path)
case '-':
st.st_mode &= ~mode;
break;
case '=':
st.st_mode = mode;
break;
}
if(chmod(path, st.st_mode) == -1)
eprintf("chmod %s:", path);