summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chown
diff options
context:
space:
mode:
authorhelbig <helbig@FreeBSD.org>1998-05-02 12:57:57 +0000
committerhelbig <helbig@FreeBSD.org>1998-05-02 12:57:57 +0000
commit52007a8cf8e565a9578ec116b85253372aa5d810 (patch)
tree1784f84d081979e6a3193a9f8578795cd6b23559 /usr.sbin/chown
parent0d35b31587e475539cbb14319ceff949698858d8 (diff)
downloadFreeBSD-src-52007a8cf8e565a9578ec116b85253372aa5d810.zip
FreeBSD-src-52007a8cf8e565a9578ec116b85253372aa5d810.tar.gz
Don't ignore symbolic links in the absence of -h, -H or -L options.
Instead change the user ID/group ID of the file that the link points to.
Diffstat (limited to 'usr.sbin/chown')
-rw-r--r--usr.sbin/chown/chown.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c
index f6c9b7d..8eb75f7 100644
--- a/usr.sbin/chown/chown.c
+++ b/usr.sbin/chown/chown.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94";
#else
static const char rcsid[] =
- "$Id: chown.c,v 1.9 1997/09/21 09:13:57 wosch Exp $";
+ "$Id: chown.c,v 1.10 1998/03/09 08:54:31 jkh Exp $";
#endif
#endif /* not lint */
@@ -165,7 +165,6 @@ main(argc, argv)
warnx("%s: %s", p->fts_path, strerror(p->fts_errno));
rval = 1;
continue;
- case FTS_SL: /* Ignore. */
case FTS_SLNONE:
/*
* The only symlinks that end up here are ones that
OpenPOWER on IntegriCloud