]> granicus.if.org Git - file/commitdiff
limit to 100 repetitions to avoid excessive backtracking Carsten Wolff
authorChristos Zoulas <christos@zoulas.com>
Mon, 25 Mar 2013 14:06:55 +0000 (14:06 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 25 Mar 2013 14:06:55 +0000 (14:06 +0000)
magic/Magdir/commands

index 157dae057dfc5f2b129af7aae2ff0892e799a402..1767c2e7c5d9ab5479ef510ccfa9e724c0a2f313 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $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
@@ -49,7 +49,7 @@
 !:mime text/x-awk
 0      string/wt       #!\ /usr/bin/awk        awk script text executable
 !:mime text/x-awk
-0      regex           =^\\s*BEGIN\\s*[{]      awk script text
+0      regex           =^\\s{0,100}BEGIN\\s{0,100}[{]  awk script text
 
 # AT&T Bell Labs' Plan 9 shell
 0      string/wt       #!\ /bin/rc     Plan 9 rc shell script text executable