mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-31 02:51:22 -05:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user