Whamcloud - gitweb
dumpe2fs: don't crash when the user provides no block device argument
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 8 Nov 2014 02:26:14 +0000 (21:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 8 Nov 2014 02:26:14 +0000 (21:26 -0500)
commitfecb231f6fc83cf4b4ddf7ec34ace3723803a499
tree463208d1c664959e9d7a99ee31d511da517146be
parentbeec19ff21d41c84dbbc2ab8d0df25147912ff59
dumpe2fs: don't crash when the user provides no block device argument

If the user doesn't provide any arguments, the guard fails to run and
the whole thing segfaults on ext2fs_open2().  Don't do that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/dumpe2fs.c