summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-01-18 12:57:36 -0500
committerColin Walters <walters@verbum.org>2012-01-18 12:57:36 -0500
commit9ea94bba36515ff7e4c4c19aac3bbeafc68c73c8 (patch)
treec11dd316f53a99529fbf44830c0573e7cdede10d
parent71e8bd9f671be2f3a2368e27c0f765343dc64cb0 (diff)
downloadlinux-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.c2
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");
}