summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file/file/debian-742262.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/file/file/debian-742262.patch')
-rw-r--r--meta/recipes-devtools/file/file/debian-742262.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/file/file/debian-742262.patch b/meta/recipes-devtools/file/file/debian-742262.patch
new file mode 100644
index 0000000000..d57258c56b
--- /dev/null
+++ b/meta/recipes-devtools/file/file/debian-742262.patch
@@ -0,0 +1,19 @@
1The awk pattern was checked *before* the Perl pattern, so the perl
2script with BEGIN{...} would be reported as awk, this patch fixes it.
3
4Upstream-Status: Backport [debian]
5
6Signed-off-by: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
7Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
8---
9diff --git a/magic/Magdir/commands b/magic/Magdir/commands
10--- a/magic/Magdir/commands
11+++ b/magic/Magdir/commands
12@@ -50,6 +50,7 @@
13 0 string/wt #!\ /usr/bin/awk awk script text executable
14 !:mime text/x-awk
15 0 regex =^\\s{0,100}BEGIN\\s{0,100}[{] awk script text
16+!:strength - 12
17
18 # AT&T Bell Labs' Plan 9 shell
19 0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable