diff options
author | markj <markj@FreeBSD.org> | 2014-03-05 04:15:17 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2014-03-05 04:15:17 +0000 |
commit | bfcbf2a469da9ded96cf2324834a865a63cf3f29 (patch) | |
tree | 21dfbc7dad3a116c1e0ccc0776475d5e445579f1 /sbin/savecore | |
parent | 7f59d5f7561e59d188dd3bb440885e8fa6c6e2db (diff) | |
download | FreeBSD-src-bfcbf2a469da9ded96cf2324834a865a63cf3f29.zip FreeBSD-src-bfcbf2a469da9ded96cf2324834a865a63cf3f29.tar.gz |
Log the name of the device that we failed to open rather than an
uninitialized buffer.
MFC after: 3 days
Diffstat (limited to 'sbin/savecore')
-rw-r--r-- | sbin/savecore/savecore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index bdbf7e3..ca2dafd 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -618,7 +618,7 @@ DoFile(const char *savedir, const char *device) */ fdinfo = open(infoname, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fdinfo < 0) { - syslog(LOG_ERR, "%s: %m", buf); + syslog(LOG_ERR, "%s: %m", infoname); nerr++; goto closefd; } |