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

Peter Avalos pavalos at theshell.com
Mon Nov 10 15:11:24 PST 2008


On Mon, Nov 10, 2008 at 02:02:05PM -0800, Matthew Dillon wrote:
> 
>     I don't know about this.  I think I would prefer that symlinks not
>     be followed when named on the command line, with or without -R.  If
>     our chflags is going to start operating on symlinks via lchflags(),
>     we do not want to do this anyway.  It just adds more confusion.
> 

Well I expected chflags's behavior to be like chown -- that is, if I
chflags a symlink, I expect it to do the operation on the underlying
file, just like chown would do.  To operate on the actual symlink, I'm
going to add a -h option to chflags which will use the new lchflags
syscall.

I don't think my assumption or expectations are out of line.  Otherwise,
there's no way to do any chflags ops through a symlink.

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


More information about the Commits mailing list