From: Christos Zoulas Date: Thu, 15 Mar 2007 14:50:34 +0000 (+0000) Subject: fix exclude option (Dmitry V. Levin) X-Git-Tag: FILE4_21~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eaed319db31294a7ed85142d49b64fb94f1f6377;p=file fix exclude option (Dmitry V. Levin) --- diff --git a/src/file.c b/src/file.c index ea4d177d..5986abfe 100644 --- a/src/file.c +++ b/src/file.c @@ -71,7 +71,7 @@ #include "patchlevel.h" #ifndef lint -FILE_RCSID("@(#)$File: file.c,v 1.107 2007/01/25 21:05:46 christos Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.108 2007/03/12 15:43:21 christos Exp $") #endif /* lint */ @@ -128,7 +128,7 @@ main(int argc, char *argv[]) char *home, *usermagic; struct stat sb; static const char hmagic[] = "/.magic"; -#define OPTSTRING "bcCdf:F:hikLm:nNprsvz0" +#define OPTSTRING "bcCde:f:F:hikLm:nNprsvz0" #ifdef HAVE_GETOPT_LONG int longindex; static const struct option long_options[] = @@ -138,7 +138,7 @@ main(int argc, char *argv[]) {"brief", 0, 0, 'b'}, {"checking-printout", 0, 0, 'c'}, {"debug", 0, 0, 'd'}, - {"exclude", 0, 0, 'e' }, + {"exclude", 1, 0, 'e' }, {"files-from", 1, 0, 'f'}, {"separator", 1, 0, 'F'}, {"mime", 0, 0, 'i'},