[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / find

Diff for /src/usr.bin/find/main.c between version 1.7 and 1.8

version 1.7, 1997/06/17 05:53:44 version 1.8, 1999/03/17 17:36:30
Line 78 
Line 78 
         sigaction(SIGINFO, &sa, NULL);          sigaction(SIGINFO, &sa, NULL);
   
         ftsoptions = FTS_NOSTAT|FTS_PHYSICAL;          ftsoptions = FTS_NOSTAT|FTS_PHYSICAL;
         while ((ch = getopt(argc, argv, "Hdf:hXx")) != -1)          while ((ch = getopt(argc, argv, "Hdf:hXxW")) != -1)
                 switch(ch) {                  switch(ch) {
                 case 'H':                  case 'H':
                         ftsoptions |= FTS_COMFOLLOW;                          ftsoptions |= FTS_COMFOLLOW;
Line 100 
Line 100 
                         ftsoptions &= ~FTS_NOSTAT;                          ftsoptions &= ~FTS_NOSTAT;
                         ftsoptions |= FTS_XDEV;                          ftsoptions |= FTS_XDEV;
                         break;                          break;
                   case 'W':
                           ftsoptions |= FTS_WHITEOUT;
                           break;
                 case '?':                  case '?':
                 default:                  default:
                         break;                          break;
Line 137 
Line 140 
 usage()  usage()
 {  {
         (void)fprintf(stderr,          (void)fprintf(stderr,
             "usage: find [-HdhXx] [-f file] [file ...] expression\n");              "usage: find [-HdhXxW] [-f file] [file ...] expression\n");
         exit(1);          exit(1);
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8