cat: Give a better error if the user specified no drives on command line.

This commit is contained in:
Richard W.M. Jones
2010-11-19 13:05:49 +00:00
parent 06e993b7ba
commit 3bd883f344

View File

@@ -220,6 +220,10 @@ main (int argc, char *argv[])
if (optind >= argc || argc - optind < 1)
usage (EXIT_FAILURE);
/* User must have specified some drives. */
if (drvs == NULL)
usage (EXIT_FAILURE);
/* Add drives, inspect and mount. Note that inspector is always true,
* and there is no -m option.
*/