]> 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 67c3eee2eba6eaa9a06cd2af32b8587e9803036b..4a7d8ddb0bf3fc40b5f9dc5af463c4ea210db87e 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: commands,v 1.44 2013/02/05 15:20:47 christos Exp $
+# $File: commands,v 1.45 2013/02/06 14:18:52 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