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
This commit is contained in:
Yaroslav Tykhiy 2007-03-07 07:45:38 +00:00
parent 32d6c6993c
commit 9a7d93d6a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167286

View File

@ -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];