freebsd-src/bin/chflags
Julian Elischer 50dab48a5b Submitted by: Whistle Communications (archie Cobbs)
These changes add the ability to specify that a UFS file/directory
cannot be unlinked. This is basically a scaled back version
of the IMMUTABLE flag. The reason is to allow an administrator
to create a directory hierarchy that a group of users
can arbitrarily add/delete files from, but that the hierarchy
itself is safe from removal by them.
If the NOUNLINK definition is set to 0
then this results in no change to what happens normally.
(and results in identical binary (in the kernel)).
It can be proven that if this bit is never set by the admin,
no new behaviour is introduced..
Several "good idea" comments from reviewers plus one grumble
about creeping featurism.

This code is in production in 2.2 based systems
1997-06-02 06:24:52 +00:00
..
chflags.1 Submitted by: Whistle Communications (archie Cobbs) 1997-06-02 06:24:52 +00:00
chflags.c compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
Makefile Set NOSHARED=true, having this binary static makes it much easier to 1995-07-24 01:44:17 +00:00