diff --git a/chmod.c b/chmod.c index d3c77e9..0671721 100644 --- a/chmod.c +++ b/chmod.c @@ -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);