summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobi <robi>2012-02-20 17:05:13 +0000
committerrobi <robi>2012-02-20 17:05:13 +0000
commita8be0cb8d0b3bc5f62c2be7959f717a546d73a90 (patch)
tree1891ec54fde56176eb8e487145e46e3087f74e00
parentbf74ad294f506a72d5ae671480ad7b88f3be07df (diff)
Option -V
-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);