mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
When stat(2) fails, put the name of the component it failed on in the
warning message as well as the path argument.
This commit is contained in:
parent
43d088bea2
commit
2a84afe106
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ check(const char *path)
|
|||
}
|
||||
|
||||
if (!pflag && stat(pathd, &sb) == -1 && errno != ENOENT) {
|
||||
warn("%s", pathd);
|
||||
warn("%s: %.*s", path, (int)(strlen(pathd) -
|
||||
complen - 1), pathd);
|
||||
goto bad;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue