summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2006-03-21 20:28:52 +0000
committerotto <otto@openbsd.org>2006-03-21 20:28:52 +0000
commit19a1923b4115ede5267661af83bc959beecfc479 (patch)
tree32279ecb9388a84892dc2368e93eb0ed82dcbd8a
parentFix for PR 5043: shell startup scripts might contain binary characters but (diff)
downloadwireguard-openbsd-19a1923b4115ede5267661af83bc959beecfc479.tar.xz
wireguard-openbsd-19a1923b4115ede5267661af83bc959beecfc479.zip
Call fts_close() when done; from NetBSD's Coverity scan; ok millert@
jaredy@
-rw-r--r--bin/rm/rm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c
index b61cdf6ebaf..f30d5cefb3f 100644
--- a/bin/rm/rm.c
+++ b/bin/rm/rm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rm.c,v 1.19 2005/08/30 21:00:05 jmc Exp $ */
+/* $OpenBSD: rm.c,v 1.20 2006/03/21 20:28:52 otto Exp $ */
/* $NetBSD: rm.c,v 1.19 1995/09/07 06:48:50 jtc Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rm.c 8.8 (Berkeley) 4/27/95";
#else
-static char rcsid[] = "$OpenBSD: rm.c,v 1.19 2005/08/30 21:00:05 jmc Exp $";
+static char rcsid[] = "$OpenBSD: rm.c,v 1.20 2006/03/21 20:28:52 otto Exp $";
#endif
#endif /* not lint */
@@ -225,6 +225,7 @@ rm_tree(char **argv)
}
if (errno)
err(1, "fts_read");
+ fts_close(fts);
}
void