summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-08-16 18:38:50 +0000
committerart <art@openbsd.org>1999-08-16 18:38:50 +0000
commita5fef46b9d142fce0f76c2014e24f0eaa060d1ea (patch)
tree66cabac6c3d04df6cf160bffaa9ed4c9d1f28941
parentdon't cast third argument to kvm_read to char *. (it's void *) (diff)
downloadwireguard-openbsd-a5fef46b9d142fce0f76c2014e24f0eaa060d1ea.tar.xz
wireguard-openbsd-a5fef46b9d142fce0f76c2014e24f0eaa060d1ea.zip
add a missing strerror. (there was already a %s in the format string)
-rw-r--r--sbin/savecore/savecore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index cb10af560bb..53fec980979 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore.c,v 1.18 1999/07/01 15:41:59 deraadt Exp $ */
+/* $OpenBSD: savecore.c,v 1.19 1999/08/16 18:38:50 art 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.18 1999/07/01 15:41:59 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: savecore.c,v 1.19 1999/08/16 18:38:50 art Exp $";
#endif
#endif /* not lint */
@@ -431,7 +431,7 @@ err1: syslog(LOG_WARNING, "%s: %s", path, strerror(errno));
ofd = Create(path, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
fp = fdopen(ofd, "w");
if (fp == NULL) {
- syslog(LOG_ERR, "%s: fdopen: %s", path);
+ syslog(LOG_ERR, "%s: fdopen: %s", path, strerror(errno));
exit(1);
}
}