mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue