diff options
author | ru <ru@FreeBSD.org> | 2001-05-28 15:31:11 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-05-28 15:31:11 +0000 |
commit | 5e17a4447b8fb1510b507aa04823e1721b5b8882 (patch) | |
tree | d914068a168ed199c47d97e1deb23d5a5c9af9dc /bin/chmod/chmod.1 | |
parent | a58618001f65f45573031d65214ac7e6dcf4fd94 (diff) | |
download | FreeBSD-src-5e17a4447b8fb1510b507aa04823e1721b5b8882.zip FreeBSD-src-5e17a4447b8fb1510b507aa04823e1721b5b8882.tar.gz |
Change noop option -h to do the real work. Now mode of symbolic link
is changed if -h option is given.
Requested by: bde
Obtained from: NetBSD (code part)
Diffstat (limited to 'bin/chmod/chmod.1')
-rw-r--r-- | bin/chmod/chmod.1 | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/bin/chmod/chmod.1 b/bin/chmod/chmod.1 index ce6c038..fe0a640 100644 --- a/bin/chmod/chmod.1 +++ b/bin/chmod/chmod.1 @@ -43,12 +43,8 @@ .Nd change file modes .Sh SYNOPSIS .Nm -.Oo -.Fl f -.Fl R -.Op Fl H | Fl L | Fl P -.Fl v -.Oc +.Op Fl fhv +.Op Fl R Op Fl H | L | P .Ar mode .Ar .Sh DESCRIPTION @@ -84,19 +80,15 @@ Do not display a diagnostic message if .Nm could not modify the mode for .Va file . +.It Fl h +If the file is a symbolic link, change the mode of the link itself +rather than the file that the link points to. .It Fl v Cause .Nm to be verbose, showing files as the mode is modified. .El .Pp -Symbolic links do not have modes, so unless the -.Fl H -or -.Fl L -option is set, -.Nm -on a symbolic link always succeeds and has no effect. The .Fl H , .Fl L |