Applying Fedoras dosfstools-2.7-argfix.patch (no other information

available).

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
Daniel Baumann 2008-09-26 13:40:47 +02:00
parent ba6774ae1d
commit 78f9dca40b

View File

@ -1634,6 +1634,12 @@ main (int argc, char **argv)
if (optind < argc)
{
device_name = argv[optind]; /* Determine the number of blocks in the FS */
if (!device_name) {
printf("No device specified.\n");
usage();
}
if (!create)
cblocks = count_blocks (device_name); /* Have a look and see! */
}