svn commit: r265075 - stable/10/sbin/savecore
Mark Johnston
markj at FreeBSD.org
Tue Apr 29 03:49:41 UTC 2014
Author: markj
Date: Tue Apr 29 03:49:40 2014
New Revision: 265075
URL: http://svnweb.freebsd.org/changeset/base/265075
Log:
MFC r262775:
Log the name of the file that we failed to open rather than an
uninitialized buffer.
Modified:
stable/10/sbin/savecore/savecore.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sbin/savecore/savecore.c
==============================================================================
--- stable/10/sbin/savecore/savecore.c Tue Apr 29 03:37:30 2014 (r265074)
+++ stable/10/sbin/savecore/savecore.c Tue Apr 29 03:49:40 2014 (r265075)
@@ -618,7 +618,7 @@ DoFile(const char *savedir, const char *
*/
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;
}
More information about the svn-src-stable
mailing list