svn commit: r194199 - stable/7/bin/chflags

Jilles Tjoelker jilles at FreeBSD.org
Sun Jun 14 17:04:00 UTC 2009


Author: jilles
Date: Sun Jun 14 17:03:59 2009
New Revision: 194199
URL: http://svn.freebsd.org/changeset/base/194199

Log:
  MFC r192687: fix chflags -h
  
  PR:		bin/131999
  Submitted by:	bde
  Approved by:	ed (mentor)

Modified:
  stable/7/bin/chflags/   (props changed)
  stable/7/bin/chflags/chflags.c

Modified: stable/7/bin/chflags/chflags.c
==============================================================================
--- stable/7/bin/chflags/chflags.c	Sun Jun 14 17:00:35 2009	(r194198)
+++ stable/7/bin/chflags/chflags.c	Sun Jun 14 17:03:59 2009	(r194199)
@@ -115,7 +115,7 @@ main(int argc, char *argv[])
 			fts_options |= FTS_LOGICAL;
 		}
 	} else
-		fts_options = FTS_LOGICAL;
+		fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL;
 
 	/* XXX: Why don't chflags and lchflags have compatible prototypes? */
 	if (hflag)


More information about the svn-src-stable-7 mailing list