diff options
author | 1999-08-16 18:38:50 +0000 | |
---|---|---|
committer | 1999-08-16 18:38:50 +0000 | |
commit | a5fef46b9d142fce0f76c2014e24f0eaa060d1ea (patch) | |
tree | 66cabac6c3d04df6cf160bffaa9ed4c9d1f28941 | |
parent | don't cast third argument to kvm_read to char *. (it's void *) (diff) | |
download | wireguard-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.c | 6 |
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); } } |