From de967dfb5b024593b2f425b95d15cab44aca7a42 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 10 Jun 2016 01:07:07 -0400 Subject: [PATCH] flatpak enter: Stop parsing context options We don't make any use of these options, and the documentation does not mention them either, so stop accepting them. --- app/flatpak-builtins-enter.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/flatpak-builtins-enter.c b/app/flatpak-builtins-enter.c index 3b3aa64a..893dfed2 100644 --- a/app/flatpak-builtins-enter.c +++ b/app/flatpak-builtins-enter.c @@ -124,7 +124,6 @@ flatpak_builtin_enter (int argc, { g_autoptr(GOptionContext) context = NULL; int rest_argv_start, rest_argc; - g_autoptr(FlatpakContext) arg_context = NULL; const char *ns_name[5] = { "user", "ipc", "net", "pid", "mnt" }; int ns_fd[G_N_ELEMENTS (ns_name)]; char pid_ns[256]; @@ -162,9 +161,6 @@ flatpak_builtin_enter (int argc, } } - arg_context = flatpak_context_new (); - g_option_context_add_group (context, flatpak_context_get_options (arg_context)); - if (!flatpak_option_context_parse (context, options, &argc, &argv, FLATPAK_BUILTIN_FLAG_NO_DIR, NULL, cancellable, error)) return FALSE;