diff options
author | markj <markj@FreeBSD.org> | 2014-04-29 03:49:40 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2014-04-29 03:49:40 +0000 |
commit | ac8b74dc0a6bf777cf79664b8a8acbdfc1f2e4e5 (patch) | |
tree | d4f18fed957c301a8acb09dffa6a9700a612f1e6 | |
parent | 652284a3437382775ff53cc6c4daaf304cedc247 (diff) | |
download | FreeBSD-src-ac8b74dc0a6bf777cf79664b8a8acbdfc1f2e4e5.zip FreeBSD-src-ac8b74dc0a6bf777cf79664b8a8acbdfc1f2e4e5.tar.gz |
MFC r262775:
Log the name of the file that we failed to open rather than an
uninitialized buffer.
-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 c2cb63b..0f1d41e 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; } |