Home | History | Annotate | only in /src/usr.bin/chflags
History log of /src/usr.bin/chflags
RevisionDateAuthorComments
 1.9 14-Apr-2009  lukem Enable WARNS=4 by default for usr.bin, except for:
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
 1.8 14-Dec-2006  he branches: 1.8.20;
Adapt chflags to the move of string_to_flags() and flags_to_string()
to libutil.
 1.7 12-Jan-2005  xtraeme WARNS=3
 1.6 18-Sep-2002  lukem makefile delint. use NETBSDSRCDIR as appropriate
 1.5 10-Oct-1998  mrg create a "stat_flags.h" to go with stat_flags.c
 1.4 08-May-1997  gwr Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
 1.3 06-May-1997  gwr Use .PATH.c: ...
 1.2 14-Nov-1994  jtc Changed to conform to NetBSD's new RCS Id convention.
 1.1 14-Nov-1994  jtc branches: 1.1.1;
Initial revision
 1.1.1.1 14-Nov-1994  jtc imported from 4.4lite
 1.8.20.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.32 31-May-2023  uwe chflags(1): xref stat_flags(3)
 1.31 25-May-2023  jschauma revert my previous commit as there is no agreement on it being either desired
or appropriate
 1.30 25-May-2023  uwe chflags(1): fix wrong markup in previous
 1.29 24-May-2023  jschauma Briefly describe the 'arch' and 'nodump' flags.
 1.28 19-May-2023  uwe chflags(1): minor markup fixes
 1.27 19-May-2023  jschauma We mention secmodel_securelevel(9) in the details, so might as well add it to
SEE ALSO.
 1.26 18-May-2023  jschauma Note that the ability to change certain flags depends on the current securelevel.
 1.25 05-May-2023  kre If chown and chgrp can grow -d flags to suppress performing the
operation when it will have no effect (other than changing the
inode's ctime value) then chmod and chflags should also have -d
flags for the same purpose. Make it so.
 1.24 17-Dec-2013  apb In all man pages that say:

The -H, -L and -P options are ignored unless the -R option is
specified. In addition, these options override each other and the
command's actions are determined by the last one specified.

Add:

The default is as if the -P option had been specified.
 1.23 12-Dec-2012  wiz - Sort option list;
- create separate section, use `.Ex' macro for, and put in the
correct location exit status information;
- bump date.

From Bug Hunting.
 1.22 12-Dec-2012  wiz - Remove incorrect use of `.Em' (this is a presentation term and
should not be used for stylistically decorating technical terms);
- remove superfluous `.Pp' macro (fixes mandoc(1) warning).

From Bug Hunting.
 1.21 14-May-2010  joerg branches: 1.21.6; 1.21.12;
Missing -width for .Bl -tag
 1.20 14-May-2010  jruoho Clarify the wording in the table.
 1.19 14-May-2010  jruoho Use a table instead of a literal .Bd "list".
 1.18 29-Jun-2009  dholland Add some markup to improve clarity.
 1.17 07-Aug-2003  agc branches: 1.17.18; 1.17.28; 1.17.40; 1.17.44; 1.17.46;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.16 24-Oct-2002  chopps add xref to init where security levels are discussed, more should probably
be written in this manpage on this subject.
 1.15 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.14 01-Dec-2001  wiz Whitespace cleanup.
 1.13 17-Oct-2001  wiz "compact" is no valid .Bd argument, "-compact" is (groff-1.17.2-found).
 1.12 10-Oct-2000  ad Nit.
 1.11 04-Aug-2000  enami Describe -h option and xref lchflags.
 1.10 17-Apr-2000  mrg implement lchflags(2), which does the chflags(2) dance without following
symlinks, and thus can operate on symlinks. remove a bogus comment in
chflags(1) that claims symlinks do not have file flags.

XXX: todo -- make chflags(1) use lchflags(2) when given the right options.
 1.9 31-Jul-1999  christos Document kernel behaviour: flags on block and character devices cannot
be changed except by the superuser. [Commit by cjs.]
 1.8 09-Mar-1999  bouyer Xref dump(8).
 1.7 03-Jan-1999  lukem highlight that ls -o lists the flags
 1.6 18-Oct-1997  lukem WARNSify, fix .Nm usage
 1.5 22-Apr-1997  mikel Note that the 'arch' flag may only be changed by the superuser; from
Paul Boven in PR kern/3491.
 1.4 31-Aug-1995  jtc Sync with 4.4lite2
 1.3 04-Jan-1995  mycroft Document the `arch' flag. Fix the test of the getopt(3) return value.
 1.2 14-Nov-1994  jtc Changed to conform to NetBSD's new RCS Id convention.
 1.1 14-Nov-1994  jtc branches: 1.1.1;
Initial revision
 1.1.1.2 31-Aug-1995  jtc imported from 44lite2
 1.1.1.1 14-Nov-1994  jtc imported from 4.4lite
 1.17.46.1 21-Apr-2010  matt sync to netbsd-5
 1.17.44.1 05-Sep-2009  bouyer Pull up following revision(s) (requested by dholland in ticket #934):
usr.bin/chflags/chflags.1: revision 1.18
Add some markup to improve clarity.
 1.17.40.1 05-Sep-2009  bouyer Pull up following revision(s) (requested by dholland in ticket #934):
usr.bin/chflags/chflags.1: revision 1.18
Add some markup to improve clarity.
 1.17.28.1 05-Sep-2009  bouyer Pull up following revision(s) (requested by dholland in ticket #1357):
usr.bin/chflags/chflags.1: revision 1.18
Add some markup to improve clarity.
 1.17.18.1 05-Sep-2009  bouyer Pull up following revision(s) (requested by dholland in ticket #1357):
usr.bin/chflags/chflags.1: revision 1.18
Add some markup to improve clarity.
 1.21.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.12.1 25-Feb-2013  tls resync with head
 1.21.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.21.6.1 16-Jan-2013  yamt sync with (a bit old) head
 1.18 05-May-2023  kre If chown and chgrp can grow -d flags to suppress performing the
operation when it will have no effect (other than changing the
inode's ctime value) then chmod and chflags should also have -d
flags for the same purpose. Make it so.
 1.17 28-Apr-2023  andvar one more place for recently fixed typo, s/phisycal/physical/.
 1.16 29-Aug-2011  joerg static + __dead
 1.15 21-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.14 14-Dec-2006  he branches: 1.14.12;
Adapt chflags to the move of string_to_flags() and flags_to_string()
to libutil.
 1.13 17-Feb-2005  xtraeme Kill __P(), use ANSI function declarations.
 1.12 20-Jan-2005  xtraeme whitespace, remove main() prototype.
 1.11 12-Jan-2005  xtraeme * Kill __P()
* ANSIfy
* Remove main() prototype
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.9 07-Jul-2002  bjh21 Align default behaviour of chmod, chgrp, chown, and chflags with symlink(7),
IEEE 1003.1-2001 (where applicable) and other systems, by follwoing symlinks
on the command line and changing their targets' modes/ownership/flags, rather
than ignoring them.

This fixes PR standards/563 (at last).
 1.8 04-Aug-2000  enami - Introduce new flag -h to operate on symlink.
- Don't print (first) pathname on fts_open failure; it doesn't make sense.
 1.7 08-Jul-2000  enami - Kill the auto variable Pflag like other ch* commands.
- Pass NULL instead of 0 where a pointer is expected.
- Use consistient error message format.
- Use tab for basic indentation.
 1.6 10-Oct-1998  mrg create a "stat_flags.h" to go with stat_flags.c
 1.5 18-Oct-1997  lukem WARNSify, fix .Nm usage
 1.4 26-Mar-1995  glass rcsid consistency
 1.3 04-Jan-1995  mycroft Document the `arch' flag. Fix the test of the getopt(3) return value.
 1.2 14-Nov-1994  jtc Changed to conform to NetBSD's new RCS Id convention.
 1.1 14-Nov-1994  jtc branches: 1.1.1;
Initial revision
 1.1.1.1 14-Nov-1994  jtc imported from 4.4lite
 1.14.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.

RSS XML Feed