mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Give better diagnostic for problems with backing files.
This commit is contained in:
parent
a3d57cfbfd
commit
e869d3777e
1 changed files with 4 additions and 0 deletions
|
|
@ -113,6 +113,10 @@ main(int argc, char **argv)
|
|||
cmdline = 2;
|
||||
}
|
||||
mdio.md_file = optarg;
|
||||
fd = open(optarg, O_RDONLY);
|
||||
if (fd < 0)
|
||||
err(1, "could not open %s", optarg);
|
||||
close(fd);
|
||||
break;
|
||||
case 'o':
|
||||
if (cmdline != 2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue