=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/find/find.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/find/find.c 1999/10/03 19:07:35 1.6 --- src/usr.bin/find/find.c 1999/10/04 21:17:32 1.7 *************** *** 1,4 **** ! /* $OpenBSD: find.c,v 1.6 1999/10/03 19:07:35 millert Exp $ */ /*- * Copyright (c) 1991, 1993 --- 1,4 ---- ! /* $OpenBSD: find.c,v 1.7 1999/10/04 21:17:32 millert Exp $ */ /*- * Copyright (c) 1991, 1993 *************** *** 38,44 **** #ifndef lint /*static char sccsid[] = "from: @(#)find.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: find.c,v 1.6 1999/10/03 19:07:35 millert Exp $"; #endif /* not lint */ #include --- 38,44 ---- #ifndef lint /*static char sccsid[] = "from: @(#)find.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: find.c,v 1.7 1999/10/04 21:17:32 millert Exp $"; #endif /* not lint */ #include *************** *** 187,209 **** } /* - * 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 * false or all have been executed. This is where we do all * the work specified by the user on the command line. */ 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); } --- 187,198 ----