]> git.lizzy.rs Git - plan9front.git/commit
hjfs: defer parent directory permission check for wstat
authorcinap_lenrek <cinap_lenrek@felloff.net>
Mon, 15 Jun 2015 06:28:10 +0000 (08:28 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Mon, 15 Jun 2015 06:28:10 +0000 (08:28 +0200)
commit9ab48ee37050e2676ae0ddbf253bb3ae5567eb45
treecd01b2e25c1a2f5824f638bf434e27a73cc8236c
parent13ec55922f0819aaa2cbb95a9f9bdbed5ae73e2b
hjfs: defer parent directory permission check for wstat

check parent directory permission *after* we determined
that the new name does not exist in the parent, so that
when the new name is the same as old name then no write
permission is required in the parent directory.
sys/src/cmd/hjfs/fs2.c