summaryrefslogtreecommitdiffstats
path: root/sbin/newfs_msdos
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>2000-08-15 17:42:24 +0000
committerrnordier <rnordier@FreeBSD.org>2000-08-15 17:42:24 +0000
commit740ddcaef2f6944d79ef4554ef453f523e07b437 (patch)
tree0fa7d0fc146083186b041ce75a90a12aa29e3414 /sbin/newfs_msdos
parent13181df4152ff26bf0444d2a6cb1dbb12c7612ad (diff)
downloadFreeBSD-src-740ddcaef2f6944d79ef4554ef453f523e07b437.zip
FreeBSD-src-740ddcaef2f6944d79ef4554ef453f523e07b437.tar.gz
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.
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index 40ed077..aeae025 100644
--- a/sbin/newfs_msdos/newfs_msdos.c
+++ b/sbin/newfs_msdos/newfs_msdos.c
@@ -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);
OpenPOWER on IntegriCloud