]> granicus.if.org Git - file/commitdiff
always accept --no-sandbox/-S (Christoph Biedl)
authorChristos Zoulas <christos@zoulas.com>
Sat, 3 Aug 2019 11:51:59 +0000 (11:51 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 3 Aug 2019 11:51:59 +0000 (11:51 +0000)
src/file.c
src/file_opts.h

index 9c374e601579a73a92bc7e2f11cb932d3694c605..89d8cfb99a1378fbd2bce02327ae60b24eb256eb 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: file.c,v 1.183 2019/07/13 16:23:58 christos Exp $")
+FILE_RCSID("@(#)$File: file.c,v 1.184 2019/08/03 11:51:59 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -76,13 +76,7 @@ int getopt_long(int, char * const *, const char *,
 # define IFLNK_L ""
 #endif
 
-#ifdef HAVE_LIBSECCOMP
-# define SECCOMP_S "S"
-#else
-# define SECCOMP_S ""
-#endif
-
-#define FILE_FLAGS     "bcCdE" IFLNK_h "ik" IFLNK_L "lNnprs" SECCOMP_S "vzZ0"
+#define FILE_FLAGS     "bcCdE" IFLNK_h "ik" IFLNK_L "lNnprsSvzZ0"
 #define OPTSTRING      "bcCde:Ef:F:hiklLm:nNpP:rsSvzZ0"
 
 # define USAGE  \
index 2b7d5347d5a8edab8f7c1071a4f07e2cd0a3f88b..4f894cc551b3fc2e0db0ef91cbb7f42fa3c0bb52 100644 (file)
@@ -57,8 +57,6 @@ OPT('P', "parameter", 1, 0, "            set file engine parameter limits\n"
 OPT('r', "raw", 0, 0, "                  don't translate unprintable chars to \\ooo\n")
 OPT('s', "special-files", 0, 0, "        treat special (block/char devices) files as\n"
     "                             ordinary ones\n")
-#ifdef HAVE_LIBSECCOMP
 OPT('S', "no-sandbox", 0, 0, "           disable system call sandboxing\n")
-#endif
 OPT('C', "compile", 0, 0, "              compile file specified by -m\n")
 OPT('d', "debug", 0, 0, "                print debugging messages\n")