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.
This commit is contained in:
parent
e66437e7a9
commit
3dd0615ba4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35622
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user