svn commit: r262775 - head/sbin/savecore

Mark Johnston markj at FreeBSD.org
Wed Mar 5 04:15:18 UTC 2014


Author: markj
Date: Wed Mar  5 04:15:17 2014
New Revision: 262775
URL: http://svnweb.freebsd.org/changeset/base/262775

Log:
  Log the name of the device that we failed to open rather than an
  uninitialized buffer.
  
  MFC after:	3 days

Modified:
  head/sbin/savecore/savecore.c

Modified: head/sbin/savecore/savecore.c
==============================================================================
--- head/sbin/savecore/savecore.c	Wed Mar  5 04:09:05 2014	(r262774)
+++ head/sbin/savecore/savecore.c	Wed Mar  5 04:15:17 2014	(r262775)
@@ -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-all mailing list