pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib Sync with src/usr.sbin ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5721d9ea2403
branches: trunk
changeset: 510868:5721d9ea2403
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Apr 05 18:17:31 2006 +0000
description:
Sync with src/usr.sbin v1.70:
http_expand_URL(): fclose() the fdopen()'ed filedescriptor
before leaving the function (for all cases).
Actual fix and sanity checking by Dillo & Wiz
Coverity CID 2340
diffstat:
pkgtools/pkg_install/files/lib/ftpio.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r cc4d8fb2ffba -r 5721d9ea2403 pkgtools/pkg_install/files/lib/ftpio.c
--- a/pkgtools/pkg_install/files/lib/ftpio.c Wed Apr 05 18:17:08 2006 +0000
+++ b/pkgtools/pkg_install/files/lib/ftpio.c Wed Apr 05 18:17:31 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpio.c,v 1.18 2005/10/30 21:27:47 joerg Exp $ */
+/* $NetBSD: ftpio.c,v 1.19 2006/04/05 18:17:31 wiz Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -8,7 +8,7 @@
#include <sys/cdefs.h>
#endif
#ifndef lint
-__RCSID("$NetBSD: ftpio.c,v 1.18 2005/10/30 21:27:47 joerg Exp $");
+__RCSID("$NetBSD: ftpio.c,v 1.19 2006/04/05 18:17:31 wiz Exp $");
#endif
/*-
@@ -827,6 +827,8 @@
}
+ fclose(fp);
+
/* wait for child to exit */
if (waitpid(pid, &state, 0) < 0) {
/* error has been reported by child */
Home |
Main Index |
Thread Index |
Old Index