]> 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 408ec6389abb78a42f5152ccd9e634bea13df650..529dc4718f43a4392936a4776003cb16913d330d 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: file.c,v 1.145 2011/12/08 12:12:46 rrt Exp $")
+FILE_RCSID("@(#)$File: file.c,v 1.146 2012/09/06 14:18:50 christos 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;