file type so it can skip symbolic links. Therefore, it can't set FTS_NOSTAT
SCCS-vsn: usr.sbin/chown/chown.c 8.6
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)chown.c 8.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)chown.c 8.6 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
- fts_options = FTS_NOSTAT | FTS_PHYSICAL;
+ fts_options = FTS_PHYSICAL;
if (Rflag) {
if (hflag)
errx(1,
if (Rflag) {
if (hflag)
errx(1,
rval = 1;
break;
case FTS_ERR: /* Warn, continue. */
rval = 1;
break;
case FTS_ERR: /* Warn, continue. */
errno = p->fts_errno;
warn("%s", p->fts_path);
rval = 1;
errno = p->fts_errno;
warn("%s", p->fts_path);
rval = 1;