Fix execvp uage in rootless_linux.c
The second argument of `execlp` should be of type `char *`, so we need to add an additional argument there. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
parent
b4f9bc868e
commit
6e318a01a0
|
@ -471,7 +471,7 @@ create_pause_process (const char *pause_pid_file_path, char **argv)
|
||||||
close (fd);
|
close (fd);
|
||||||
|
|
||||||
setenv ("_PODMAN_PAUSE", "1", 1);
|
setenv ("_PODMAN_PAUSE", "1", 1);
|
||||||
execlp (argv[0], NULL);
|
execlp (argv[0], argv[0], NULL);
|
||||||
|
|
||||||
/* If the execve fails, then do the pause here. */
|
/* If the execve fails, then do the pause here. */
|
||||||
do_pause ();
|
do_pause ();
|
||||||
|
@ -693,7 +693,6 @@ reexec_in_user_namespace (int ready, char *pause_pid_file_path, char *file_to_re
|
||||||
pid = syscall_clone (CLONE_NEWUSER|CLONE_NEWNS|SIGCHLD, NULL);
|
pid = syscall_clone (CLONE_NEWUSER|CLONE_NEWNS|SIGCHLD, NULL);
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
|
||||||
fprintf (stderr, "cannot clone: %s\n", strerror (errno));
|
fprintf (stderr, "cannot clone: %s\n", strerror (errno));
|
||||||
check_proc_sys_userns_file (_max_user_namespaces);
|
check_proc_sys_userns_file (_max_user_namespaces);
|
||||||
check_proc_sys_userns_file (_unprivileged_user_namespaces);
|
check_proc_sys_userns_file (_unprivileged_user_namespaces);
|
||||||
|
|
Loading…
Reference in New Issue