]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck.cramfs: add dummy -a -y for compatibility
authorKarel Zak <kzak@redhat.com>
Mon, 18 Feb 2013 11:18:29 +0000 (12:18 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Feb 2013 11:18:29 +0000 (12:18 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.cramfs.c

index b39d2310b59511d73e3e31debc0b98bb6cf1625a..7ec785000e0e4447ed6e79f0c1ad1ba36d6faf63 100644 (file)
@@ -113,10 +113,14 @@ static void __attribute__((__noreturn__)) usage(int status)
        fprintf(stream,
                _(" %s [options] file\n"), program_invocation_short_name);
        fputs(USAGE_OPTIONS, stream);
-       fputs(_(" -x, --destination <dir>  extract into directory\n"), stream);
+       fputs(_(" -a                       for compatibility only, ignored\n"), stream);
        fputs(_(" -v, --verbose            be more verbose\n"), stream);
+       fputs(_(" -x, --destination <dir>  extract into directory\n"), stream);
+       fputs(_(" -y                       for compatibility only, ignored\n"), stream);
+       fputs(USAGE_SEPARATOR, stream);
        fputs(USAGE_HELP, stream);
        fputs(USAGE_VERSION, stream);
+       fputs(USAGE_SEPARATOR, stream);
        exit(status);
 }
 
@@ -652,8 +656,11 @@ int main(int argc, char **argv)
        outbuffer = xmalloc(page_size * 2);
 
        /* command line options */
-       while ((c = getopt_long(argc, argv, "x:vVh", longopts, NULL)) != EOF)
+       while ((c = getopt_long(argc, argv, "ayx:vVh", longopts, NULL)) != EOF)
                switch (c) {
+               case 'a':               /* ignore */
+               case 'y':
+                       break;
                case 'h':
                        usage(FSCK_EX_OK);
                        break;