=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/find/misc.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/find/misc.c 1997/06/30 23:54:08 1.4 --- src/usr.bin/find/misc.c 2001/11/16 23:54:38 1.5 *************** *** 1,4 **** ! /* $OpenBSD: misc.c,v 1.4 1997/06/30 23:54:08 millert Exp $ */ /*- * Copyright (c) 1990, 1993 --- 1,4 ---- ! /* $OpenBSD: misc.c,v 1.5 2001/11/16 23:54:38 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 *************** *** 38,44 **** #ifndef lint /*static char sccsid[] = "from: @(#)misc.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: misc.c,v 1.4 1997/06/30 23:54:08 millert Exp $"; #endif /* not lint */ #include --- 38,44 ---- #ifndef lint /*static char sccsid[] = "from: @(#)misc.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: misc.c,v 1.5 2001/11/16 23:54:38 deraadt Exp $"; #endif /* not lint */ #include *************** *** 139,147 **** --- 139,149 ---- show_path(sig) int sig; { + int save_errno = errno; extern FTSENT *entry; write(STDERR_FILENO, "find path: ", 11); write(STDERR_FILENO, entry->fts_path, entry->fts_pathlen); write(STDERR_FILENO, "\n", 1); + errno = save_errno; }