[libmultipath] make sure that the callout program picks up the PATH from
authorChristophe Varoqui <root@xa-s05.(none)>
Wed, 19 Jul 2006 12:43:32 +0000 (14:43 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Wed, 19 Jul 2006 12:43:32 +0000 (14:43 +0200)
the invoking shell

Bernhard Fischer

libmultipath/callout.c

index 46b89e6..b0bc503 100644 (file)
@@ -78,7 +78,7 @@ int execute_program(char *path, char *value, int len)
                /* dup write side of pipe to STDOUT */
                dup(fds[1]);
 
-               retval = execv(argv[0], argv);
+               retval = execvp(argv[0], argv);
 
                exit(-1);
        case -1: