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.
This commit is contained in:
Matthias Clasen
2016-06-10 01:07:07 -04:00
parent 302dbd2910
commit de967dfb5b

View File

@@ -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;