[linux-user-chroot] Search $PATH when executing



commit 9ea94bba36515ff7e4c4c19aac3bbeafc68c73c8
Author: Colin Walters <walters verbum org>
Date:   Wed Jan 18 12:57:36 2012 -0500

    Search $PATH when executing
    
    Just more convenient, and there's no reason not to.

 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");
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]