DragonFly commits List (threaded) for 2008-11
DragonFly BSD
DragonFly commits List (threaded) for 2008-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Peter Avalos <pavalos@xxxxxxxxxxxx>
Date: Tue, 11 Nov 2008 00:14:08 -0500
Mail-followup-to: commits@crater.dragonflybsd.org

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
Description: PGP signature



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