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:
parent
aefebbdf27
commit
776f03d204
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user