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

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

version 1.6, 1999/10/03 19:07:35 version 1.7, 1999/10/04 21:17:32
Line 187 
Line 187 
                 }                  }
   
                 /*                  /*
                  * Since fts does not chdir for the root node we  
                  * have to do this ourselves to make -execdir work.  
                  */  
                 if (entry->fts_level == FTS_ROOTLEVEL)  
                         chdir(entry->fts_accpath);  
   
                 /*  
                  * Call all the functions in the execution plan until one is                   * Call all the functions in the execution plan until one is
                  * false or all have been executed.  This is where we do all                   * false or all have been executed.  This is where we do all
                  * the work specified by the user on the command line.                   * the work specified by the user on the command line.
                  */                   */
                 for (p = plan; p && (p->eval)(p, entry); p = p->next)                  for (p = plan; p && (p->eval)(p, entry); p = p->next)
                     ;                      ;
   
                 /* Undo the chdir above to make fts happy. */  
                 if (entry->fts_level == FTS_ROOTLEVEL)  
                         fchdir(tree->fts_rfd);  
         }          }
         (void)fts_close(tree);          (void)fts_close(tree);
 }  }

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