diff --git a/0001-mime-actions-use-format-argument.patch b/0001-mime-actions-use-format-argument.patch new file mode 100644 index 0000000..1cd3c0e --- /dev/null +++ b/0001-mime-actions-use-format-argument.patch @@ -0,0 +1,32 @@ +From 6a05bf635594359baf45ef4ac3db1f9745b73d5d Mon Sep 17 00:00:00 2001 +From: Ernestas Kulik +Date: Tue, 3 May 2016 19:03:24 +0300 +Subject: [PATCH] mime-actions: use format argument + +The call to gtk_message_dialog_format_secondary_text() in +show_unhandled_type_error() is missing a format argument, which causes +build failures with -Werror=format-security. + +This commit adds the missing argument. + +https://bugzilla.gnome.org/show_bug.cgi?id=765918 +--- + src/nautilus-mime-actions.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c +index 21f6246..b5e77a1 100644 +--- a/src/nautilus-mime-actions.c ++++ b/src/nautilus-mime-actions.c +@@ -1143,7 +1143,7 @@ show_unhandled_type_error (ActivateParametersInstall *parameters) + 0, + "%s", error_message); + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), +- text); ++ "%s", text); + + g_free (text); + } +-- +2.5.5 + diff --git a/nautilus.spec b/nautilus.spec index 37e5b34..99af47a 100644 --- a/nautilus.spec +++ b/nautilus.spec @@ -14,6 +14,8 @@ Release: 1%{?dist} License: GPLv2+ Group: User Interface/Desktops Source: https://download.gnome.org/sources/%{name}/3.20/%{name}-%{version}.tar.xz +# Backported from upstream +Patch0: 0001-mime-actions-use-format-argument.patch URL: https://wiki.gnome.org/Apps/Nautilus @@ -75,6 +77,7 @@ for developing nautilus extensions. %prep %setup -q +%patch0 -p1 #%%patch4 -p1 -b .selinux