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.
This commit is contained in:
parent
ca4b4242c9
commit
50e2fb8055
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user