X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=repo-shell.c;h=8399925729f6d1646dfabcfeb27113918205fca3;hb=9f92ff54a7119d649dfb1e3110ea35f63fa00967;hp=b44c64421a2abee000a32aa6460b39a28e676f5e;hpb=a898b04558c82e95fe91084b157091507c125087;p=repo_shell.git diff --git a/repo-shell.c b/repo-shell.c index b44c644..8399925 100644 --- a/repo-shell.c +++ b/repo-shell.c @@ -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 {