summaryrefslogtreecommitdiff
path: root/bin/rm
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-03-21 20:28:53 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-03-21 20:28:53 +0000
commit602da2fa5b1519e33942feea1be9e3fa72c06a39 (patch)
tree51823b352bfd5e54d4a41457c4c3cfb49094085f /bin/rm
parent2af1671aa665f0abdcb27536a8c8ea7ede6f9b0d (diff)
Call fts_close() when done; from NetBSD's Coverity scan; ok millert@
jaredy@
Diffstat (limited to 'bin/rm')
-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