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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64682
@ -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 New Issue
Block a user