diff options
Diffstat (limited to 'guts/execvp.c')
-rw-r--r-- | guts/execvp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guts/execvp.c b/guts/execvp.c index a3ce05b..419f41b 100644 --- a/guts/execvp.c +++ b/guts/execvp.c @@ -14,7 +14,9 @@ * design will likely be revisited. */ if (antimagic == 0) { - pseudo_client_op(OP_EXEC, PSA_EXEC, -1, -1, file, 0); + char *path_guess = pseudo_exec_path(file, 1); + pseudo_client_op(OP_EXEC, PSA_EXEC, -1, -1, path_guess, 0); + free(path_guess); } if (!pseudo_get_value("PSEUDO_RELOADED")) |