Log the name of the device that we failed to open rather than an

uninitialized buffer.

MFC after:	3 days
This commit is contained in:
Mark Johnston 2014-03-05 04:15:17 +00:00
parent aefebbdf27
commit 776f03d204

View File

@ -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;
}