• Jonas Termansen's avatar
    Fix chmod(2), chown(2), and utimens(2) opening the path for writing. · d3a64e11
    Jonas Termansen authored
    The change 9d29e96c "Fix open(2) allowing
    opening directories invalidly and check O_TRUNC errors." broke the chmod(2),
    chown(2), and utimens(2) system calls on directories, because they can no
    longer be opened for writing.
    
    This changes fixes the regression by opening such paths for reading. There
    is currently no filesystem permission checks for those system calls. However,
    those system calls should check the permissions at the time of the operation
    rather than relying on the file having been opened for writing previously.
    d3a64e11
Name
Last commit
Last update
bench Loading commit data...
build-aux Loading commit data...
carray Loading commit data...
disked Loading commit data...
dispd Loading commit data...
doc Loading commit data...
editor Loading commit data...
ext Loading commit data...
games Loading commit data...
hostname Loading commit data...
init Loading commit data...
kblayout Loading commit data...
kblayout-compiler Loading commit data...
kernel Loading commit data...
libc Loading commit data...
libm Loading commit data...
libmount Loading commit data...
login Loading commit data...
mkinitrd Loading commit data...
regress Loading commit data...
rw Loading commit data...
sf Loading commit data...
sh Loading commit data...
share Loading commit data...
sysinstall Loading commit data...
tix Loading commit data...
trianglix Loading commit data...
update-initrd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...