From 78f9dca40b2ba699daab0f7d8e7a2ff833919f94 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 26 Sep 2008 13:40:47 +0200 Subject: [PATCH] Applying Fedoras dosfstools-2.7-argfix.patch (no other information available). Signed-off-by: Daniel Baumann --- mkdosfs/mkdosfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mkdosfs/mkdosfs.c b/mkdosfs/mkdosfs.c index 19ca88c..28c7e3e 100644 --- a/mkdosfs/mkdosfs.c +++ b/mkdosfs/mkdosfs.c @@ -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! */ }