summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-01 15:42:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-01 15:42:00 +0000
commit3061752848deb06dd1e6172c0060acd3084bfae7 (patch)
tree9d6f835de6c89b5a776e67cfe98b7fe06280aaf0
parent19ca399c4c920dca50d5c308ada11b1d4c6243ad (diff)
extra fclose(); ronald@chersonese.com
-rw-r--r--sbin/savecore/savecore.c5
-rw-r--r--sbin/savecore/savecore_old.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index ff03ebff979..cb10af560bb 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore.c,v 1.17 1999/02/23 07:40:29 deraadt Exp $ */
+/* $OpenBSD: savecore.c,v 1.18 1999/07/01 15:41:59 deraadt Exp $ */
/* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#else
-static char rcsid[] = "$OpenBSD: savecore.c,v 1.17 1999/02/23 07:40:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: savecore.c,v 1.18 1999/07/01 15:41:59 deraadt Exp $";
#endif
#endif /* not lint */
@@ -418,7 +418,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%s.%d.core%s",
diff --git a/sbin/savecore/savecore_old.c b/sbin/savecore/savecore_old.c
index 4eb664715e9..172856750a7 100644
--- a/sbin/savecore/savecore_old.c
+++ b/sbin/savecore/savecore_old.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore_old.c,v 1.14 1999/02/23 07:40:29 deraadt Exp $ */
+/* $OpenBSD: savecore_old.c,v 1.15 1999/07/01 15:41:59 deraadt Exp $ */
/* $NetBSD: savecore_old.c,v 1.1.1.1 1996/03/16 10:25:11 leo Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#else
-static char rcsid[] = "$OpenBSD: savecore_old.c,v 1.14 1999/02/23 07:40:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: savecore_old.c,v 1.15 1999/07/01 15:41:59 deraadt Exp $";
#endif
#endif /* not lint */
@@ -416,7 +416,6 @@ err1: syslog(LOG_WARNING, "%s: %m", path);
(void)fprintf(fp, "%d\n", bounds + 1);
(void)fclose(fp);
}
- (void)fclose(fp);
/* Create the core file. */
(void)snprintf(path, sizeof(path), "%s%s.%d.core%s",