oops, make sure we close the file descriptor...

This commit is contained in:
christos 2001-06-06 14:10:46 +00:00
parent 92359cee67
commit e4ad645398
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: __fts13.c,v 1.33 2001/06/05 17:05:11 christos Exp $ */ /* $NetBSD: __fts13.c,v 1.34 2001/06/06 14:10:46 christos Exp $ */
/*- /*-
* Copyright (c) 1990, 1993, 1994 * Copyright (c) 1990, 1993, 1994
@ -38,7 +38,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#else #else
__RCSID("$NetBSD: __fts13.c,v 1.33 2001/06/05 17:05:11 christos Exp $"); __RCSID("$NetBSD: __fts13.c,v 1.34 2001/06/06 14:10:46 christos Exp $");
#endif #endif
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
@ -524,6 +524,7 @@ name: t = sp->fts_path + NAPPEND(p->fts_parent);
SET(FTS_STOP); SET(FTS_STOP);
return (NULL); return (NULL);
} }
(void)close(fd);
} }
p->fts_info = p->fts_errno ? FTS_ERR : FTS_DP; p->fts_info = p->fts_errno ? FTS_ERR : FTS_DP;
return (sp->fts_cur = p); return (sp->fts_cur = p);