From: Christos Zoulas Date: Sat, 13 Jul 2019 16:23:58 +0000 (+0000) Subject: always support the --no-sandbox option. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a1bb655e4cf0a436a5d5313fcca95e55ba56a65;p=file always support the --no-sandbox option. --- diff --git a/src/file.c b/src/file.c index 11cb83ca..9c374e60 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.182 2019/06/08 22:16:24 christos Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.183 2019/07/13 16:23:58 christos Exp $") #endif /* lint */ #include "magic.h" @@ -298,11 +298,11 @@ main(int argc, char *argv[]) case 's': flags |= MAGIC_DEVICES; break; -#ifdef HAVE_LIBSECCOMP case 'S': +#ifdef HAVE_LIBSECCOMP sandbox = 0; - break; #endif + break; case 'v': if (magicfile == NULL) magicfile = magic_getpath(magicfile, action); @@ -310,6 +310,9 @@ main(int argc, char *argv[]) VERSION); (void)fprintf(stdout, "magic file from %s\n", magicfile); +#ifdef HAVE_LIBSECCOMP + (void)fprintf(stdout, "seccomp support included\n"); +#endif return 0; case 'z': flags |= MAGIC_COMPRESS;