From: Christos Zoulas Date: Tue, 23 Dec 2003 17:32:41 +0000 (+0000) Subject: fix -k flag X-Git-Tag: FILE5_05~908 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2f2f34af486cdf1958a67c57178684068429c97;p=file fix -k flag --- diff --git a/src/file.c b/src/file.c index c61ce994..c6d6c406 100644 --- a/src/file.c +++ b/src/file.c @@ -72,7 +72,7 @@ #include "patchlevel.h" #ifndef lint -FILE_RCSID("@(#)$Id: file.c,v 1.87 2003/11/11 20:01:45 christos Exp $") +FILE_RCSID("@(#)$Id: file.c,v 1.88 2003/12/23 17:32:41 christos Exp $") #endif /* lint */ @@ -91,8 +91,7 @@ FILE_RCSID("@(#)$Id: file.c,v 1.87 2003/11/11 20:01:45 christos Exp $") private int /* Global command-line options */ bflag = 0, /* brief output format */ nopad = 0, /* Don't pad output */ - nobuffer = 0, /* Do not buffer stdout */ - kflag = 0; /* Keep going after the first match */ + nobuffer = 0; /* Do not buffer stdout */ private const char *magicfile = 0; /* where the magic is */ private const char *default_magicfile = MAGIC; @@ -227,7 +226,7 @@ main(int argc, char *argv[]) flags |= MAGIC_MIME; break; case 'k': - kflag = 1; + flags |= MAGIC_CONTINUE; break; case 'm': magicfile = optarg;