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;
        }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to