aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdmfs
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2007-03-07 07:45:38 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2007-03-07 07:45:38 +0000
commit9a7d93d6a7098067ff9d65aaa815df88606035f4 (patch)
treeb253ae8f4f09679a1c92752ba0dcdbf1472d8600 /sbin/mdmfs
parent32d6c6993c3c56efb932ff0f4a60554af0b43713 (diff)
downloadsrc-9a7d93d6a7098067ff9d65aaa815df88606035f4.tar.gz
src-9a7d93d6a7098067ff9d65aaa815df88606035f4.zip
Don't leave a NULL value in mdsuffix when a particular md
unit w/o suffix is specified. It had better be an empty string as it will be passed to a printf-like function that builds the command line to run. PR: kern/109863 MFC after: 1 week
Notes
Notes: svn path=/head/; revision=167286
Diffstat (limited to 'sbin/mdmfs')
-rw-r--r--sbin/mdmfs/mdmfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c
index c552f567ced0..acc6e00f2087 100644
--- a/sbin/mdmfs/mdmfs.c
+++ b/sbin/mdmfs/mdmfs.c
@@ -246,9 +246,8 @@ main(int argc, char **argv)
ul = strtoul(unitstr, &p, 10);
if (ul == ULONG_MAX)
errx(1, "bad device unit: %s", unitstr);
- if (*p != '\0')
- mdsuffix = p;
unit = ul;
+ mdsuffix = p; /* can be empty */
}
mtpoint = argv[1];