=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/find/main.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/find/main.c 1997/06/17 05:53:44 1.7 --- src/usr.bin/find/main.c 1999/03/17 17:36:30 1.8 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.7 1997/06/17 05:53:44 millert Exp $ */ /*- * Copyright (c) 1990, 1993 --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.8 1999/03/17 17:36:30 espie Exp $ */ /*- * Copyright (c) 1990, 1993 *************** *** 35,41 **** #ifndef lint /*static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: main.c,v 1.7 1997/06/17 05:53:44 millert Exp $"; #endif /* not lint */ #include --- 35,41 ---- #ifndef lint /*static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: main.c,v 1.8 1999/03/17 17:36:30 espie Exp $"; #endif /* not lint */ #include *************** *** 78,84 **** sigaction(SIGINFO, &sa, NULL); ftsoptions = FTS_NOSTAT|FTS_PHYSICAL; ! while ((ch = getopt(argc, argv, "Hdf:hXx")) != -1) switch(ch) { case 'H': ftsoptions |= FTS_COMFOLLOW; --- 78,84 ---- sigaction(SIGINFO, &sa, NULL); ftsoptions = FTS_NOSTAT|FTS_PHYSICAL; ! while ((ch = getopt(argc, argv, "Hdf:hXxW")) != -1) switch(ch) { case 'H': ftsoptions |= FTS_COMFOLLOW; *************** *** 100,105 **** --- 100,108 ---- ftsoptions &= ~FTS_NOSTAT; ftsoptions |= FTS_XDEV; break; + case 'W': + ftsoptions |= FTS_WHITEOUT; + break; case '?': default: break; *************** *** 137,142 **** usage() { (void)fprintf(stderr, ! "usage: find [-HdhXx] [-f file] [file ...] expression\n"); exit(1); } --- 140,145 ---- usage() { (void)fprintf(stderr, ! "usage: find [-HdhXxW] [-f file] [file ...] expression\n"); exit(1); }