Skip to content

Commit

Permalink
always support the --no-sandbox option.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulasc committed Jul 13, 2019
1 parent 3e11551 commit 2a1bb65
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/file.c
Expand Up @@ -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"
Expand Down Expand Up @@ -298,18 +298,21 @@ 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);
(void)fprintf(stdout, "%s-%s\n", file_getprogname(),
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;
Expand Down

0 comments on commit 2a1bb65

Please sign in to comment.