]> granicus.if.org Git - file/commitdiff
PR/198: Version should not exit 1
authorChristos Zoulas <christos@zoulas.com>
Thu, 6 Sep 2012 14:18:50 +0000 (14:18 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 6 Sep 2012 14:18:50 +0000 (14:18 +0000)
src/file.c

index 08fbb42b7e8448a0479bc28790675da732fdd243..7911b07727977b8363780350fd62b51933593dbe 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: file.c,v 1.144 2011/05/10 17:08:14 christos Exp $")
+FILE_RCSID("@(#)$File: file.c,v 1.145 2011/12/08 12:12:46 rrt Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -252,7 +252,7 @@ main(int argc, char *argv[])
                        (void)fprintf(stdout, "%s-%s\n", progname, VERSION);
                        (void)fprintf(stdout, "magic file from %s\n",
                                       magicfile);
-                       return 1;
+                       return 0;
                case 'z':
                        flags |= MAGIC_COMPRESS;
                        break;