Give better diagnostic for problems with backing files.
This commit is contained in:
parent
a3d57cfbfd
commit
e869d3777e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132629
@ -113,6 +113,10 @@ main(int argc, char **argv)
|
|||||||
cmdline = 2;
|
cmdline = 2;
|
||||||
}
|
}
|
||||||
mdio.md_file = optarg;
|
mdio.md_file = optarg;
|
||||||
|
fd = open(optarg, O_RDONLY);
|
||||||
|
if (fd < 0)
|
||||||
|
err(1, "could not open %s", optarg);
|
||||||
|
close(fd);
|
||||||
break;
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
if (cmdline != 2)
|
if (cmdline != 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user