diff options
Diffstat (limited to 'src/update-desktop-database.c')
-rw-r--r-- | src/update-desktop-database.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/update-desktop-database.c b/src/update-desktop-database.c index 7f48357..ce4d8c8 100644 --- a/src/update-desktop-database.c +++ b/src/update-desktop-database.c @@ -450,6 +450,13 @@ main (int argc, { NULL } }; +#if HAVE_PLEDGE + if (pledge("stdio rpath wpath cpath fattr", NULL) == -1) { + g_printerr ("pledge\n"); + return 1; + } +#endif + context = g_option_context_new (""); g_option_context_set_summary (context, _("Build cache database of MIME types handled by desktop files.")); g_option_context_add_main_entries (context, options, NULL); |