Blame SOURCES/0006-xdg-mime-awk-script-syntax-error-BR104298.patch

62ab29
From eda08ef065adac7cfa46f296d378cc06a3131d3e Mon Sep 17 00:00:00 2001
62ab29
From: Rex Dieter <rdieter@gmail.com>
62ab29
Date: Mon, 18 Dec 2017 15:50:45 -0600
62ab29
Subject: [PATCH 6/8] xdg-mime awk script syntax error (BR104298)
62ab29
62ab29
---
62ab29
 ChangeLog           | 3 +++
62ab29
 scripts/xdg-mime.in | 4 ++--
62ab29
 2 files changed, 5 insertions(+), 2 deletions(-)
62ab29
62ab29
diff --git a/ChangeLog b/ChangeLog
62ab29
index 292915f..964006c 100644
62ab29
--- a/ChangeLog
62ab29
+++ b/ChangeLog
62ab29
@@ -1,5 +1,8 @@
62ab29
 === xdg-utils 1.1.3 ===
62ab29
 
62ab29
+2017-1218
62ab29
+   * xdg-mime awk script syntax error (BR104298)
62ab29
+
62ab29
 === xdg-utils 1.1.2 ===
62ab29
 
62ab29
 2017-02-28 Rex Dieter <rdieter@fedoraproject.org>
62ab29
diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in
62ab29
index b67581c..0e567c7 100644
62ab29
--- a/scripts/xdg-mime.in
62ab29
+++ b/scripts/xdg-mime.in
62ab29
@@ -171,7 +171,7 @@ make_default_kde()
62ab29
             blanks++
62ab29
             suppress=1
62ab29
         } else if (associations && index($0, prefix) == 1) {
62ab29
-            value=substr($0, length(prefix) + 1, length)
62ab29
+            value=substr($0, length(prefix) + 1, length())
62ab29
             split(value, apps, ";")
62ab29
             value=application ";"
62ab29
             count=0
62ab29
@@ -369,7 +369,7 @@ check_mimeapps_list()
62ab29
         } else if (index($0, "[") == 1) {
62ab29
             indefault=0
62ab29
         } else if (!found && indefault && index($0, prefix) == 1) {
62ab29
-            print substr($0, length(prefix) +1, length)
62ab29
+            print substr($0, length(prefix) +1, length())
62ab29
             found=1
62ab29
         }
62ab29
     }
62ab29
-- 
62ab29
2.14.3
62ab29