Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2014 03:50:24 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r265076 - stable/9/sbin/savecore
Message-ID:  <201404290350.s3T3oOND008122@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Apr 29 03:50:23 2014
New Revision: 265076
URL: http://svnweb.freebsd.org/changeset/base/265076

Log:
  MFC r262775:
  Log the name of the file that we failed to open rather than an
  uninitialized buffer.

Modified:
  stable/9/sbin/savecore/savecore.c
Directory Properties:
  stable/9/sbin/savecore/   (props changed)

Modified: stable/9/sbin/savecore/savecore.c
==============================================================================
--- stable/9/sbin/savecore/savecore.c	Tue Apr 29 03:49:40 2014	(r265075)
+++ stable/9/sbin/savecore/savecore.c	Tue Apr 29 03:50:23 2014	(r265076)
@@ -549,7 +549,7 @@ DoFile(const char *savedir, const char *
 	 */
 	fdinfo = open(buf, 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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404290350.s3T3oOND008122>