Allow -R and -h to be combined as long as no symlink-following flags

are also requested.
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
This commit is contained in:
Jordan K. Hubbard 1998-03-09 08:54:31 +00:00
parent 76a43cd8f2
commit 6408ef3c4a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34399

View File

@ -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.8 1997/09/04 11:55:45 charnier Exp $";
"$Id: chown.c,v 1.9 1997/09/21 09:13:57 wosch Exp $";
#endif
#endif /* not lint */
@ -121,7 +121,7 @@ main(argc, argv)
fts_options = FTS_PHYSICAL;
if (Rflag) {
if (hflag)
if (hflag && (Lflag || Hflag))
errx(1, "the -R and -h options may not be specified together");
if (Hflag)
fts_options |= FTS_COMFOLLOW;