]> granicus.if.org Git - file/commitdiff
add some binary patterns for scripts (Debian#707014)
authorChristos Zoulas <christos@zoulas.com>
Sat, 1 Mar 2014 22:32:39 +0000 (22:32 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 1 Mar 2014 22:32:39 +0000 (22:32 +0000)
magic/Magdir/commands
magic/Magdir/varied.script

index 1767c2e7c5d9ab5479ef510ccfa9e724c0a2f313..134bb3dfd8f9d2aa954545ea573252483065f404 100644 (file)
@@ -1,15 +1,24 @@
 
 #------------------------------------------------------------------------------
-# $File: commands,v 1.46 2013/03/25 14:06:55 christos Exp $
+# $File: commands,v 1.47 2014/03/01 22:32:39 christos Exp $
 # commands:  file(1) magic for various shells and interpreters
 #
 #0     string/w        :                       shell archive or script for antique kernel text
 0      string/wt       #!\ /bin/sh             POSIX shell script text executable
 !:mime text/x-shellscript
+
+0      string/wb       #!\ /bin/sh             POSIX shell script executable (binary data)
+!:mime text/x-shellscript
+
+
 0      string/wt       #!\ /bin/csh            C shell script text executable
 !:mime text/x-shellscript
+
 # korn shell magic, sent by George Wu, gwu@clyde.att.com
 0      string/wt       #!\ /bin/ksh            Korn shell script text executable
+0      string/wb       #!\ /bin/ksh            Korn shell script executable (binary data)
+!:mime text/x-shellscript
+
 !:mime text/x-shellscript
 0      string/wt       #!\ /bin/tcsh           Tenex C shell script text executable
 !:mime text/x-shellscript
 # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
 0      string/wt       #!\ /bin/bash   Bourne-Again shell script text executable
 !:mime text/x-shellscript
+0      string/wb       #!\ /bin/bash   Bourne-Again shell script executable (binary data)
+!:mime text/x-shellscript
 0      string/wt       #!\ /usr/bin/bash       Bourne-Again shell script text executable
 !:mime text/x-shellscript
+0      string/wb       #!\ /usr/bin/bash       Bourne-Again shell script executable (binary data)
+!:mime text/x-shellscript
 0      string/wt       #!\ /usr/local/bash     Bourne-Again shell script text executable
 !:mime text/x-shellscript
+0      string/wb       #!\ /usr/local/bash     Bourne-Again shell script executable (binary data)
+!:mime text/x-shellscript
 0      string/wt       #!\ /usr/local/bin/bash Bourne-Again shell script text executable
 !:mime text/x-shellscript
+0      string/wb       #!\ /usr/local/bin/bash Bourne-Again shell script executable (binary data)
+!:mime text/x-shellscript
 
 # PHP scripts
 # Ulf Harnhammar <ulfh@update.uu.se>
index 50259d3ed922b6d9f8950f6b007e94869e01b9b8..eb71b2f5772333974b539bc5c0a72c262e06f52f 100644 (file)
@@ -1,28 +1,56 @@
 #------------------------------------------------------------------------------
-# $File: varied.script,v 1.9 2011/12/16 16:32:48 rrt Exp $
+# $File: varied.script,v 1.10 2014/03/01 22:32:39 christos Exp $
 # varied.script:  file(1) magic for various interpreter scripts
 
 0      string/t                #!\ /                   a
 >3     string          >\0                     %s script text executable
 !:strength / 2
+
+0      string/b                #!\ /                   a
+>3     string          >\0                     %s script executable (binary data)
+!:strength / 2
+
 0      string/t                #!\t/                   a
 >3     string          >\0                     %s script text executable
 !:strength / 2
+
+0      string/b                #!\t/                   a
+>3     string          >\0                     %s script executable (binary data)
+!:strength / 2
+
 0      string/t                #!/                     a
 >2     string          >\0                     %s script text executable
 !:strength / 2
+
+0      string/b                #!/                     a
+>2     string          >\0                     %s script executable (binary data)
+!:strength / 2
+
 0      string/t                #!\                     script text executable
 >3     string          >\0                     for %s
 !:strength / 3
 
+0      string/b                #!\                     script executable
+>3     string          >\0                     for %s (binary data)
+!:strength / 3
+
 # using env
 0      string/t        #!/usr/bin/env          a
 >15    string/t        >\0                     %s script text executable
 !:strength / 10
+
+0      string/b        #!/usr/bin/env          a
+>15    string/b        >\0                     %s script executable (binary data)
+!:strength / 10
+
 0      string/t        #!\ /usr/bin/env        a
 >16    string/t        >\0                     %s script text executable
 !:strength / 10
 
+0      string/b        #!\ /usr/bin/env        a
+>16    string/b        >\0                     %s script executable (binary data)
+!:strength / 10
+
 # From: arno <arenevier@fdn.fr>
 # mozilla xpconnect typelib
 # see http://www.mozilla.org/scriptable/typelib_file.html