summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2006-03-17 23:05:32 +0000
committerotto <otto@openbsd.org>2006-03-17 23:05:32 +0000
commit7ae81eb0303f210d114f91169a62a289ab7488d1 (patch)
treed6c545d671d86fc2fc3549c69a9b58ff6cdd8f24
parentanother unreachable found by lint (diff)
downloadwireguard-openbsd-7ae81eb0303f210d114f91169a62a289ab7488d1.tar.xz
wireguard-openbsd-7ae81eb0303f210d114f91169a62a289ab7488d1.zip
Call fts_close(); from NetBSD's Coverity analysis; ok jaredy@ millert@
-rw-r--r--bin/cp/cp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index 766c43fd78f..ebeec1e9fa6 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cp.c,v 1.30 2005/11/09 20:03:29 otto Exp $ */
+/* $OpenBSD: cp.c,v 1.31 2006/03/17 23:05:32 otto Exp $ */
/* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */
/*
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95";
#else
-static char rcsid[] = "$OpenBSD: cp.c,v 1.30 2005/11/09 20:03:29 otto Exp $";
+static char rcsid[] = "$OpenBSD: cp.c,v 1.31 2006/03/17 23:05:32 otto Exp $";
#endif
#endif /* not lint */
@@ -457,6 +457,7 @@ copy(char *argv[], enum op type, int fts_options)
}
if (errno)
err(1, "fts_read");
+ (void)fts_close(ftsp);
return (rval);
}