Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: basesrc/bin/ls



Module Name:    basesrc
Committed By:   lukem
Date:           Thu Oct 18 03:16:20 UTC 2001

Modified Files:
        basesrc/bin/ls: stat_flags.c stat_flags.h

Log Message:
flags_to_strings() changes:

- fix bug where the 'clear' flag was set outside of main loop, so
  "dump,uchg,arch" on a file with flags would clear all the bits
  (because "dump" sets 'clear'). noted in FreeBSD PR 10071, and fix
  obtained from FreeBSD.

- enforce right-most priority on arguments by clearing the appropriate
  bit in the opposite set; if a string of "nouchg,uchg" is given,
  chflags(8) would clear uchg because it applies the "set" bits before
  clearing the "clear" bits.  now, "uchg" sets UF_IMMUTABLE in setp
  and also resets it in clrp, solving this problem

- constify second arg (the `default' arg)


To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 basesrc/bin/ls/stat_flags.c
cvs rdiff -r1.2 -r1.3 basesrc/bin/ls/stat_flags.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index