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