]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: reject empty suboption arguments
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Aug 2011 08:30:39 +0000 (10:30 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 29 Aug 2011 08:30:39 +0000 (10:30 +0200)
commitf815670b5d230e3b312c935ea7b669ba36d5641c
treef3ea43cfda4ee651e4f462e98199567f38cd104e
parent481d1f83a1e32ee44a3abae75c55b7bdc1136392
mkfs: reject empty suboption arguments

We require the argument to suboptions to not only exist, but also contain
a non-empty string, as cvtnum can't handle empty strings properly.  Also add
the missing argument check to the -l agnum suboption which was lacking it.

Reported-by: Chris Pearson <kermit4@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c