summaryrefslogtreecommitdiff
path: root/src/ext4magic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext4magic.c')
-rw-r--r--src/ext4magic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext4magic.c b/src/ext4magic.c
index b7c0dda..96792c8 100644
--- a/src/ext4magic.c
+++ b/src/ext4magic.c
@@ -365,8 +365,8 @@ __u32 t_after = 0;
struct stat filestat;
- // Sanity checks on the user.
-if ( argc < 3 )
+ // Sanity checks on the user.
+if ((argc == 1) || ((argc == 2) && (!(strstr(argv[1],"-V"))))) // allow '-V' as single argument
{
printf("%s : Error: Missing device name and options.\n", progname);
printf("%s \n", usage);