summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-08-16 18:38:51 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-08-16 18:38:51 +0000
commit7e51ffae2900f29fcb3c68df7cfd1ceef75e796c (patch)
tree042096e6111af8e3ab77d0d4bc1f4d9aecc90dd5 /sbin
parentdf20def492dba1aaf42562c6fc496ecc3f12f26d (diff)
add a missing strerror. (there was already a %s in the format string)
Diffstat (limited to 'sbin')
-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);
}
}