summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg>2009-03-02 15:30:45 +0000
committerjoerg <joerg>2009-03-02 15:30:45 +0000
commit4d3dd1e5bde6a8c89c275a1e0e55e56d68c989ca (patch)
treea05c845755467b1e9fb99a58d0c6ef86653a41cf /pkgtools
parent4d1b8f50fc62cb4c5f7211fa8625833abf331e87 (diff)
downloadpkgsrc-4d3dd1e5bde6a8c89c275a1e0e55e56d68c989ca.tar.gz
Remove a close(-1) as hinted by wiz.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/add/perform.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c
index 9aa37689cf2..b087e4c5e9c 100644
--- a/pkgtools/pkg_install/files/add/perform.c
+++ b/pkgtools/pkg_install/files/add/perform.c
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.82 2009/03/02 14:59:14 joerg Exp $ */
+/* $NetBSD: perform.c,v 1.83 2009/03/02 15:30:45 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
#endif
@@ -6,7 +6,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: perform.c,v 1.82 2009/03/02 14:59:14 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.83 2009/03/02 15:30:45 joerg Exp $");
/*-
* Copyright (c) 2003 Grant Beattie <grant@NetBSD.org>
@@ -776,7 +776,6 @@ pkg_register_depends(struct pkg_task *pkg)
if (fd == -1) {
warn("can't open dependency file '%s',"
"registration is incomplete!", required_by);
- close(fd);
} else if (write(fd, text, text_len) != text_len) {
warn("can't write to dependency file `%s'", required_by);
close(fd);