summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYetoo Happy <yetoohappy@gmail.com>2018-04-23 15:46:41 -0700
committerRay Strode <rstrode@redhat.com>2018-05-17 10:10:28 -0400
commit85a68ab14aad3d83abe1317d0c067f4d80a4dc82 (patch)
tree162e7ebf7089bbc359646bcceacc8e30925d1498
parent4085d689d138c42195fd299c4fc9f567e7961641 (diff)
downloadgdm-85a68ab14aad3d83abe1317d0c067f4d80a4dc82.tar.gz
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
-rw-r--r--daemon/main.c1
1 files changed, 0 insertions, 1 deletions
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);