summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-07-01 13:24:21 +1000
committerDamien Miller <djm@mindrot.org>2000-07-01 13:24:21 +1000
commit7b413d2d1702997152051a54dcda984e288eeea5 (patch)
tree8cd4bc0a9dd3d58ddbdcef3f43f3366400117856 /sshconnect.c
parent8e81ed3081412b3525d6819216ec3eb3f8b65c7e (diff)
- (djm) Replace "/bin/sh" with _PATH_BSHELL
- (djm) Replace "/usr/bin/login" with LOGIN_PROGRAM
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. */