summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--sshconnect.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index e14d0f828..6e0bf132b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1openssh (1:5.1p1-2) UNRELEASED; urgency=low
2
3 * Look for $SHELL on the path when executing ProxyCommands or
4 LocalCommands (closes: #492728).
5
6 -- Colin Watson <cjwatson@debian.org> Tue, 29 Jul 2008 10:33:50 +0100
7
1openssh (1:5.1p1-1) unstable; urgency=low 8openssh (1:5.1p1-1) unstable; urgency=low
2 9
3 * New upstream release (closes: #474301). Important changes not previously 10 * New upstream release (closes: #474301). Important changes not previously
diff --git a/sshconnect.c b/sshconnect.c
index 01337fe40..0e3001201 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -142,7 +142,7 @@ ssh_proxy_connect(const char *host, u_short port, const char *proxy_command)
142 142
143 /* Execute the proxy command. Note that we gave up any 143 /* Execute the proxy command. Note that we gave up any
144 extra privileges above. */ 144 extra privileges above. */
145 execv(argv[0], argv); 145 execvp(argv[0], argv);
146 perror(argv[0]); 146 perror(argv[0]);
147 exit(1); 147 exit(1);
148 } 148 }
@@ -1169,7 +1169,7 @@ ssh_local_cmd(const char *args)
1169 pid = fork(); 1169 pid = fork();
1170 if (pid == 0) { 1170 if (pid == 0) {
1171 debug3("Executing %s -c \"%s\"", shell, args); 1171 debug3("Executing %s -c \"%s\"", shell, args);
1172 execl(shell, shell, "-c", args, (char *)NULL); 1172 execlp(shell, shell, "-c", args, (char *)NULL);
1173 error("Couldn't execute %s -c \"%s\": %s", 1173 error("Couldn't execute %s -c \"%s\": %s",
1174 shell, args, strerror(errno)); 1174 shell, args, strerror(errno));
1175 _exit(1); 1175 _exit(1);