diff options
author | Colin Walters <walters@verbum.org> | 2012-01-18 12:57:36 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-01-18 12:57:36 -0500 |
commit | 9ea94bba36515ff7e4c4c19aac3bbeafc68c73c8 (patch) | |
tree | c11dd316f53a99529fbf44830c0573e7cdede10d | |
parent | 71e8bd9f671be2f3a2368e27c0f765343dc64cb0 (diff) | |
download | linux-user-chroot-9ea94bba36515ff7e4c4c19aac3bbeafc68c73c8.tar.gz |
Search $PATH when executing
Just more convenient, and there's no reason not to.
-rw-r--r-- | src/linux-user-chroot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux-user-chroot.c b/src/linux-user-chroot.c index f895311..d816115 100644 --- a/src/linux-user-chroot.c +++ b/src/linux-user-chroot.c @@ -333,7 +333,7 @@ main (int argc, if (setuid (ruid) < 0) fatal_errno ("setuid"); - if (execv (program, program_argv) < 0) + if (execvp (program, program_argv) < 0) fatal_errno ("execv"); } |