]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - repo-shell.c
Execute shell progs with user PATH
[repo_shell.git] / repo-shell.c
index b44c64421a2abee000a32aa6460b39a28e676f5e..8399925729f6d1646dfabcfeb27113918205fca3 100644 (file)
@@ -321,7 +321,7 @@ int main(int argc, char **argv)
        cd_to_homedir();
        count = split_cmdline(prog, &user_argv);
        if (count >= 0) {
-               execv(user_argv[0], (char *const *) user_argv);
+               execvp(user_argv[0], (char *const *) user_argv);
                free(user_argv);
                die("unrecognized command '%s'", argv[2]);
        } else {