diff options
author | peter <peter@FreeBSD.org> | 1997-03-31 13:03:49 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-31 13:03:49 +0000 |
commit | 526a6977d3675629fedb81678eb4e6c86a7786c1 (patch) | |
tree | 890611ba35a01704fe15caa9ef7d6324de05cbfd /usr.sbin/chown/chgrp.1 | |
parent | c4807cce9044753a0d8a6a18f0434ced2fe46491 (diff) | |
download | FreeBSD-src-526a6977d3675629fedb81678eb4e6c86a7786c1.zip FreeBSD-src-526a6977d3675629fedb81678eb4e6c86a7786c1.tar.gz |
Activate the -h flag which tells chown/chgrp to work on the symlink itself
using lchown(). Most of the code was already here, the option was
recognised but ignored for SYSV/POSIX.2(?) compatability.
Diffstat (limited to 'usr.sbin/chown/chgrp.1')
-rw-r--r-- | usr.sbin/chown/chgrp.1 | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/usr.sbin/chown/chgrp.1 b/usr.sbin/chown/chgrp.1 index c6e486b..9abff11 100644 --- a/usr.sbin/chown/chgrp.1 +++ b/usr.sbin/chown/chgrp.1 @@ -47,6 +47,7 @@ .Op Fl H | Fl L | Fl P .Oc .Op Fl f +.Op Fl h .Ar group .Ar files ... .Sh DESCRIPTION @@ -77,15 +78,11 @@ in the files instead of just the files themselves. .It Fl f The force option ignores errors, except for usage errors and doesn't query about strange modes (unless the user does not have proper permissions). +.It Fl h +If the file is a symbolic link, the group ID of the link itself is changed +rather than the file that is pointed to. .El .Pp -Symbolic links don't have groups, so unless the -.Fl H -or -.Fl L -option is set, -.Nm chgrp -on a symbolic link always succeeds and has no effect. The .Fl H , .Fl L @@ -113,11 +110,7 @@ The .Nm chgrp utility exits 0 on success, and >0 if an error occurs. .Sh COMPATIBILITY -Previous versions of the -.Nm chgrp -utility changed the group of symbolic links specified on the command -line. -In this system, symbolic links do not have groups. +In previous versions of this system, symbolic links did not have groups. .Sh FILES .Bl -tag -width /etc/group -compact .It Pa /etc/group |