diff options
author | dd <dd@FreeBSD.org> | 2005-05-14 23:23:10 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2005-05-14 23:23:10 +0000 |
commit | a15208c6fbb88b817909d4ed60bc476644076486 (patch) | |
tree | fb692eca432b08ed003fc04bef1bb4e8b0f9d483 /bin/chflags/chflags.1 | |
parent | c138dacf0cfab71856dbdc3a17fafb8d56f55dca (diff) | |
download | FreeBSD-src-a15208c6fbb88b817909d4ed60bc476644076486.zip FreeBSD-src-a15208c6fbb88b817909d4ed60bc476644076486.tar.gz |
Add an interface to the lchflags(2) syscall. The new -h option is
analogous to chmod(1)'s -h. It allows setting flags on symbolic links,
which *do* exist in 5.x+ despite a claim to the contrary in the
chflags(1) man page.
Suggested by: Chris Dillon
Diffstat (limited to 'bin/chflags/chflags.1')
-rw-r--r-- | bin/chflags/chflags.1 | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/bin/chflags/chflags.1 b/bin/chflags/chflags.1 index 426c98e..e1200db 100644 --- a/bin/chflags/chflags.1 +++ b/bin/chflags/chflags.1 @@ -32,7 +32,7 @@ .\" @(#)chflags.1 8.4 (Berkeley) 5/2/95 .\" $FreeBSD$ .\" -.Dd February 24, 2005 +.Dd May 14, 2005 .Dt CHFLAGS 1 .Os .Sh NAME @@ -40,6 +40,7 @@ .Nd change file flags .Sh SYNOPSIS .Nm +.Op Fl h .Oo .Fl R .Op Fl H | Fl L | Fl P @@ -61,6 +62,11 @@ If the .Fl R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal are not followed.) +.It Fl h +If the +.Ar file +is a symbolic link, +change the mode of the link itself rather than the file to which it points. .It Fl L If the .Fl R @@ -114,11 +120,12 @@ clear the user immutable flag (owner or super-user only) clear the nodump flag (owner or super-user only) .El .Pp -Symbolic links do not have flags, so unless the -.Fl H +Unless the +.Fl H , +.Fl L , or -.Fl L -option is set, +.Fl h +options are given, .Nm on a symbolic link always succeeds and has no effect. The |