diff options
Diffstat (limited to 'debian/patches/shell-path.patch')
-rw-r--r-- | debian/patches/shell-path.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/shell-path.patch b/debian/patches/shell-path.patch new file mode 100644 index 000000000..9501972b9 --- /dev/null +++ b/debian/patches/shell-path.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | Index: b/sshconnect.c | ||
2 | =================================================================== | ||
3 | --- a/sshconnect.c | ||
4 | +++ b/sshconnect.c | ||
5 | @@ -139,7 +139,7 @@ | ||
6 | |||
7 | /* Execute the proxy command. Note that we gave up any | ||
8 | extra privileges above. */ | ||
9 | - execv(argv[0], argv); | ||
10 | + execvp(argv[0], argv); | ||
11 | perror(argv[0]); | ||
12 | exit(1); | ||
13 | } | ||
14 | @@ -1167,7 +1167,7 @@ | ||
15 | pid = fork(); | ||
16 | if (pid == 0) { | ||
17 | debug3("Executing %s -c \"%s\"", shell, args); | ||
18 | - execl(shell, shell, "-c", args, (char *)NULL); | ||
19 | + execlp(shell, shell, "-c", args, (char *)NULL); | ||
20 | error("Couldn't execute %s -c \"%s\": %s", | ||
21 | shell, args, strerror(errno)); | ||
22 | _exit(1); | ||