If someone wants to set sticky, setuid, setgid, or other bits not
in 0777 they should be able to do it. A new form of the mode attribute
that takes a bit mask which is the set of bits to leave unperturbed (or
alternatively the set of bits to change) as well as the mode, would allow
semantics like chmod +s or chmod +l to work.
|