freebsd-nq/bin
Edward Tomasz Napierala deda5987bc With NFSv4 ACLs, it is possible that applying a mode to an ACL which
is identical to the mode computed from that ACL will modify the ACL.
For example, mode computed from the following ACL is 0600:

   user:kamila:rwx--------C--:------:allow
        owner@:--x-----------:------:deny
        owner@:rw-p---A-W-Co-:------:allow
        group@:rwxp----------:------:deny
        group@:--------------:------:allow
     everyone@:rwxp---A-W-Co-:------:deny
     everyone@:------a-R-c--s:------:allow

However, applying that mode (chmod 0600) changes the ACL into this:

   user:kamila:rwx-----------:------:deny
   user:kamila:rwx--------C--:------:allow
        owner@:--x-----------:------:deny
        owner@:rw-p---A-W-Co-:------:allow
        group@:rwxp----------:------:deny
        group@:--------------:------:allow
     everyone@:rwxp---A-W-Co-:------:deny
     everyone@:------a-R-c--s:------:allow

In chmod(1) utility, there is an optimisation, which makes it not
call chmod(2) if the mode of the file is the same as the new mode.
Disable that optimisation for files which may have NFSv4 ACLs.

Reviewed by:	rwatson
Approved by:	re (kib)
2009-07-01 15:52:19 +00:00
..
cat
chflags Staticify internal routines. 2009-06-23 23:30:56 +00:00
chio
chmod With NFSv4 ACLs, it is possible that applying a mode to an ACL which 2009-07-01 15:52:19 +00:00
cp Preserve file flags on symlinks in cp -Rp. 2009-05-30 10:36:14 +00:00
csh
date
dd
df Staticify internal routines. 2009-06-23 23:30:56 +00:00
domainname
echo
ed
expr
getfacl
hostname Staticify internal routines. 2009-06-23 23:30:56 +00:00
kenv
kill
ln
ls
mkdir
mv
pax
pkill When finding processes, ignore ourself and our ancestors. It is almost 2009-05-17 04:34:14 +00:00
ps Fix elapsed (etime) field for swapped out processes in ps: 2009-05-24 15:32:34 +00:00
pwd
rcp
realpath
rm rm, find -delete: fix removing symlinks with uchg/uappnd set. 2009-05-30 10:42:19 +00:00
rmail
rmdir
setfacl
sh Fix some weirdnesses in the NetBSD IFS code, 2009-06-25 17:14:06 +00:00
sleep
stty
sync
test Fix various cases with 3 or 4 parameters in test(1) to be POSIX compliant. 2009-05-26 22:33:10 +00:00
uuidgen
Makefile
Makefile.inc