ports/x11/gtk+3/patches/patch-gtk_updateiconcache_c

16 lines
409 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: gtk/updateiconcache.c
--- gtk/updateiconcache.c.orig
+++ gtk/updateiconcache.c
@@ -1725,6 +1725,11 @@ main (int argc, char **argv)
path = g_locale_to_utf8 (path, -1, NULL, NULL, NULL);
#endif
+ if (pledge("stdio rpath wpath cpath fattr", NULL) == -1) {
+ g_printerr (_("pledge\n"));
+ exit (1);
+ }
+
if (validate)
{
gchar *file = g_build_filename (path, CACHE_NAME, NULL);