From c2f0020e47ac26cc4d8d1798c9976975e8b8c26a Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 11 Jul 1995 17:03:44 +0000 Subject: 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. --- sbin/savecore/savecore.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sbin') 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", -- cgit v1.1