diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-07-25 08:17:23 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-07-25 08:17:23 +0000 |
| commit | e869d3777e7fed09f29d9736e5584cd67777744e (patch) | |
| tree | 8ebf8ca02bd28d3ca43cfc6cfaeec798da30d920 /sbin | |
| parent | a3d57cfbfd835bbc84f432efd40ea867b1c3c915 (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/mdconfig/mdconfig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index b23e903831aba..d83148dc1d70d 100644 --- a/sbin/mdconfig/mdconfig.c +++ b/sbin/mdconfig/mdconfig.c @@ -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) |
