From 85a68ab14aad3d83abe1317d0c067f4d80a4dc82 Mon Sep 17 00:00:00 2001 From: Yetoo Happy Date: Mon, 23 Apr 2018 15:46:41 -0700 Subject: daemon: Don't call g_option_context_set_ignore_unknown_options When using unknown command line options with the GDM daemon, the program hangs until explicitly getting killed. This commit addresses that bug by dropping an unnecessary call to g_option_context_set_ignore_unknown_options, so GOptionContext will now give an error when encountering unknown options. https://bugzilla.gnome.org/show_bug.cgi?id=795494 --- daemon/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/daemon/main.c b/daemon/main.c index 4a5c5496..1b893fe0 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -329,7 +329,6 @@ main (int argc, context = g_option_context_new (_("GNOME Display Manager")); g_option_context_add_main_entries (context, entries, NULL); - g_option_context_set_ignore_unknown_options (context, TRUE); error = NULL; res = g_option_context_parse (context, &argc, &argv, &error); -- cgit v1.2.1