summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-11 17:03:44 +0000
committerbde <bde@FreeBSD.org>1995-07-11 17:03:44 +0000
commitc2f0020e47ac26cc4d8d1798c9976975e8b8c26a (patch)
tree650cc53deffda9828c0dc8728d06f7712fff0f3c /sbin
parent6a1dea5dbee367c692654f33a8938f863a27f1da (diff)
downloadFreeBSD-src-c2f0020e47ac26cc4d8d1798c9976975e8b8c26a.zip
FreeBSD-src-c2f0020e47ac26cc4d8d1798c9976975e8b8c26a.tar.gz
Remove a bogus fclose. Normally the "w" stream for /var/crash/bounds was
fclosed twice and this didn't seem to cause any problems, but when /var/crash was on an an unwritable nfs-mounted partition, fclose(NULL) caused a core dump.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/savecore/savecore.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index cb583b3..cd106f0 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -350,7 +350,6 @@ err1: syslog(LOG_WARNING, "%s: %s", path, strerror(errno));
(void)fprintf(fp, "%d\n", bounds + 1);
(void)fclose(fp);
}
- (void)fclose(fp);
/* Create the core file. */
(void)snprintf(path, sizeof(path), "%s/vmcore.%d%s",
OpenPOWER on IntegriCloud