cvs commit: src/usr.bin/chflags chflags.1 chflags.c

Peter Avalos pavalos at theshell.com
Mon Nov 10 21:14:28 PST 2008


On Mon, Nov 10, 2008 at 07:27:17PM -0800, Matthew Dillon wrote:
> :pavalos     2008/11/10 18:55:13 PST
> :    usr.bin/chflags      chflags.1 chflags.c 
> :  Log:
> :  Add an interface to the lchflags(2) syscall.  The new -h option will
> :  change the flags on the symlink.
> 
>     It has to be conditionalized so it doesn't break buildworld
>     on a pre-lchflags system, which is all systems since they
>     have to buildworld to get from a pre-lchflags system to a
>     post-lchflags system :-)
> 

It turns out we don't need to do this (tested it on leaf).  I was
complaining on IRC about this, but it was because I forgot to add a
prototype to sys/stat.h (duh)!

The build system doesn't actually use the -h flag (hence the lchflags
syscall) so we don't need to conditionalize it, because installworld
will install a new version (of course the standard disclaimer of having
a world out-of-sync with kernel applies).

--Peter
Attachment:
pgp00002.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00002.pgp
Type: application/octet-stream
Size: 197 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/commits/attachments/20081110/14efb27b/attachment-0019.obj>


More information about the Commits mailing list