summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2017-09-03 18:12:51 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2017-09-03 18:15:32 +0200
commit03f83461cb459de29dae1ee9f8f37aff480b872b (patch)
tree7e75b94d34ee95db2f6f562b0454d3703f410f3b /x11-libs/libgksu/files/libgksu-2.0.12-g_markup_escape_text_for_command.patch
parentx11-libs/gksu: fix build with format-security, bug #517664 (diff)
downloadgentoo-03f83461cb459de29dae1ee9f8f37aff480b872b.tar.gz
gentoo-03f83461cb459de29dae1ee9f8f37aff480b872b.tar.bz2
gentoo-03f83461cb459de29dae1ee9f8f37aff480b872b.zip
x11-libs/libgksu: fix build with format-security, bug #517614
Bump to EAPI=6. Fix .desktop file validation, bug #512364. Apply select Debian patches. Closes: https://bugs.gentoo.org/show_bug.cgi?id=512364 Closes: https://bugs.gentoo.org/show_bug.cgi?id=517614 Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'x11-libs/libgksu/files/libgksu-2.0.12-g_markup_escape_text_for_command.patch')
-rw-r--r--x11-libs/libgksu/files/libgksu-2.0.12-g_markup_escape_text_for_command.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11-libs/libgksu/files/libgksu-2.0.12-g_markup_escape_text_for_command.patch b/x11-libs/libgksu/files/libgksu-2.0.12-g_markup_escape_text_for_command.patch
new file mode 100644
index 000000000000..de3ab6806eee
--- /dev/null
+++ b/x11-libs/libgksu/files/libgksu-2.0.12-g_markup_escape_text_for_command.patch
@@ -0,0 +1,21 @@
+Escape text for display in password prompt.
+
+From the Debian patch stack.
+
+--- a/libgksu/libgksu.c
++++ b/libgksu/libgksu.c
+@@ -994,12 +994,12 @@
+ "The application '%s' lets you "
+ "modify essential parts of your "
+ "system."),
+- command);
++ g_markup_escape_text(command, -1));
+ else
+ msg = g_strdup_printf (_("<b><big>Enter your password to run "
+ "the application '%s' as user %s"
+ "</big></b>"),
+- command, context->user);
++ g_markup_escape_text(command, -1), context->user);
+ }
+ else
+ {