From: Christos Zoulas <christos@zoulas.com> Date: Thu, 6 Sep 2012 14:18:50 +0000 (+0000) Subject: PR/198: Version should not exit 1 X-Git-Tag: FILE5_12~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5a197f98d6ad293a25f3e20563aab31906c5ab3;p=file PR/198: Version should not exit 1 --- diff --git a/src/file.c b/src/file.c index 08fbb42b..7911b077 100644 --- a/src/file.c +++ b/src/file.c @@ -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;