summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 835ca7b3a..79b6856da 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -108,15 +108,15 @@ ssh_proxy_connect(const char *host, u_short port, uid_t original_real_uid,
108 108
109 /* Stderr is left as it is so that error messages get 109 /* Stderr is left as it is so that error messages get
110 printed on the user's terminal. */ 110 printed on the user's terminal. */
111 argv[0] = "/bin/sh"; 111 argv[0] = _PATH_BSHELL;
112 argv[1] = "-c"; 112 argv[1] = "-c";
113 argv[2] = command_string; 113 argv[2] = command_string;
114 argv[3] = NULL; 114 argv[3] = NULL;
115 115
116 /* Execute the proxy command. Note that we gave up any 116 /* Execute the proxy command. Note that we gave up any
117 extra privileges above. */ 117 extra privileges above. */
118 execv("/bin/sh", argv); 118 execv(_PATH_BSHELL, argv);
119 perror("/bin/sh"); 119 perror(_PATH_BSHELL);
120 exit(1); 120 exit(1);
121 } 121 }
122 /* Parent. */ 122 /* Parent. */