mirror of
git://git.suckless.org/sbase
synced 2024-12-23 23:43:33 +00:00
whoops, chmod =
This commit is contained in:
parent
26723ba0dc
commit
0cca0c209b
3
chmod.c
3
chmod.c
@ -51,6 +51,9 @@ chmodr(const char *path)
|
|||||||
case '-':
|
case '-':
|
||||||
st.st_mode &= ~mode;
|
st.st_mode &= ~mode;
|
||||||
break;
|
break;
|
||||||
|
case '=':
|
||||||
|
st.st_mode = mode;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if(chmod(path, st.st_mode) == -1)
|
if(chmod(path, st.st_mode) == -1)
|
||||||
eprintf("chmod %s:", path);
|
eprintf("chmod %s:", path);
|
||||||
|
Loading…
Reference in New Issue
Block a user