Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/find If -H, clear FTS_LOGICAL and set FTS_PHYSICAL a...



details:   https://anonhg.NetBSD.org/src/rev/16980fc573e1
branches:  trunk
changeset: 495753:16980fc573e1
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Aug 04 09:01:05 2000 +0000

description:
If -H, clear FTS_LOGICAL and set FTS_PHYSICAL as well as FTS_COMFOLLOW.
If -L, clear FTS_PHYSICAL as well as FTS_COMFOLLOW.

diffstat:

 usr.bin/find/main.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r dd132a9bbb04 -r 16980fc573e1 usr.bin/find/main.c
--- a/usr.bin/find/main.c       Fri Aug 04 08:47:03 2000 +0000
+++ b/usr.bin/find/main.c       Fri Aug 04 09:01:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.16 2000/03/16 18:47:48 enami Exp $  */
+/*     $NetBSD: main.c,v 1.17 2000/08/04 09:01:05 enami Exp $  */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -43,7 +43,7 @@
 #else
 __COPYRIGHT("@(#) Copyright (c) 1990, 1993, 1994\n\
        The Regents of the University of California.  All rights reserved.\n");
-__RCSID("$NetBSD: main.c,v 1.16 2000/03/16 18:47:48 enami Exp $");
+__RCSID("$NetBSD: main.c,v 1.17 2000/08/04 09:01:05 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -92,13 +92,11 @@
        while ((ch = getopt(argc, argv, "HLPXdf:hsx")) != -1)
                switch (ch) {
                case 'H':
-                       ftsoptions |= FTS_COMFOLLOW;
-#if 0  /* XXX necessary? */
                        ftsoptions &= ~FTS_LOGICAL;
-#endif
+                       ftsoptions |= FTS_PHYSICAL|FTS_COMFOLLOW;
                        break;
                case 'L':
-                       ftsoptions &= ~FTS_COMFOLLOW;
+                       ftsoptions &= ~(FTS_COMFOLLOW|FTS_PHYSICAL);
                        ftsoptions |= FTS_LOGICAL;
                        break;
                case 'P':



Home | Main Index | Thread Index | Old Index