summaryrefslogtreecommitdiff
path: root/sbin/newfs_msdos/newfs_msdos.c
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2000-07-26 20:12:46 +0000
committerJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2000-07-26 20:12:46 +0000
commit7333848d989de13fa8fd84a0c6ba3424a030ff18 (patch)
tree1ee684b4ee6004a1995ea287dc114ecd04e1c90a /sbin/newfs_msdos/newfs_msdos.c
parent13f5bcc90d9bbce4ab4c82ae65e8a4df15f5ed96 (diff)
downloadsrc-test2-7333848d989de13fa8fd84a0c6ba3424a030ff18.tar.gz
src-test2-7333848d989de13fa8fd84a0c6ba3424a030ff18.zip
Notes
Diffstat (limited to 'sbin/newfs_msdos/newfs_msdos.c')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index a51c5cdb79a9..40ed0772eeb6 100644
--- a/sbin/newfs_msdos/newfs_msdos.c
+++ b/sbin/newfs_msdos/newfs_msdos.c
@@ -336,7 +336,7 @@ main(int argc, char *argv[])
usage();
fname = *argv++;
if (!strchr(fname, '/')) {
- snprintf(buf, sizeof(buf), "%sr%s", _PATH_DEV, fname);
+ snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname);
if (stat(buf, &sb))
snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname);
if (!(fname = strdup(buf)))
@@ -349,7 +349,7 @@ main(int argc, char *argv[])
if (!opt_N)
check_mounted(fname, sb.st_mode);
if (!S_ISCHR(sb.st_mode))
- warnx("warning: %s is not a character device", fname);
+ errx(1, "%s is not a character device", fname);
memset(&bpb, 0, sizeof(bpb));
if (opt_f) {
getstdfmt(opt_f, &bpb);