]> 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 4a7d8ddb0bf3fc40b5f9dc5af463c4ea210db87e..7dbee86c4d9174dcb1f8719f3ba3a3d210d290e5 100644 (file)
@@ -1,15 +1,24 @@
 
 #------------------------------------------------------------------------------
-# $File: commands,v 1.45 2013/02/06 14:18:52 christos Exp $
+# $File: commands,v 1.46 2013/03/25 14:06:55 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 1226aa0689ea7a56b5e121bc9f59bc8ed7baa58c..11e1d2178a92c4ceace4df5cdca35bee86d72e03 100644 (file)
@@ -1,28 +1,56 @@
 #------------------------------------------------------------------------------
-# $File: varied.script,v 1.8 2011/12/05 23:14:02 rrt Exp $
+# $File: varied.script,v 1.9 2011/12/16 16:32:48 rrt 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