freebsd-skq/sys/ufs
bde 1771415dae Always mark st_ctime for update upon successful completion of
chown().  Previously, it wasn't marked for null chown()'s.  We
permit null chown()s as a special case of "appropriate privilege"
- everyone has enough priviilege to not change ids (this is a better
argument than the one I gave for rev.1.13, that null changes aren't
really changes).  However, POSIX.1 requires the update independently
of whether anything has changed.

Clear both the setuid and the setgid bits upon successful completion
of non-null chown()s by non-root.  Previously, the setuid bit was
only changed for non-null changes of the uid, etc.  POSIX.1 requires
clearing both unless the call was made by a process with "appropriate
privilege", in which case altering the bits is implementation-defined.
We define appropriate privilege as `process is root, or the change
is null', and the implementation-defined behaviour as not altering
the bits.   There is no interpretation that permits clearing only
one of the bits.

Reviewed by:	jdp
1997-07-13 16:26:40 +00:00
..
ffs Use smalllblktosize() instead of multiplying small block numbers 1997-04-10 13:17:09 +00:00
lfs Fix a problem with the VN device. Specifically, the VN device can 1997-06-15 17:56:53 +00:00
mfs Mount MFS read/write as in days of yore. 1997-04-28 09:15:18 +00:00
ufs Always mark st_ctime for update upon successful completion of 1997-07-13 16:26:40 +00:00