mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Partially revert r1.12, in which a warnx() if the device is not a
character device is changed to an errx(). This unnecessarily compromises device independence.
This commit is contained in:
parent
38bd736e76
commit
e3d24c1a5f
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ main(int argc, char *argv[])
|
|||
if (!opt_N)
|
||||
check_mounted(fname, sb.st_mode);
|
||||
if (!S_ISCHR(sb.st_mode))
|
||||
errx(1, "%s is not a character device", fname);
|
||||
warnx("warning: %s is not a character device", fname);
|
||||
memset(&bpb, 0, sizeof(bpb));
|
||||
if (opt_f) {
|
||||
getstdfmt(opt_f, &bpb);
|
||||
|
|
|
|||
Loading…
Reference in a new issue