|
Lines 165-170
auth_input_request_forwarding(struct pas
Link Here
|
| 165 |
Channel *nc; |
165 |
Channel *nc; |
| 166 |
int sock = -1; |
166 |
int sock = -1; |
| 167 |
struct sockaddr_un sunaddr; |
167 |
struct sockaddr_un sunaddr; |
|
|
168 |
char socket_dir[MAXPATHLEN]; |
| 168 |
|
169 |
|
| 169 |
if (auth_sock_name != NULL) { |
170 |
if (auth_sock_name != NULL) { |
| 170 |
error("authentication forwarding requested twice."); |
171 |
error("authentication forwarding requested twice."); |
|
Lines 175-181
auth_input_request_forwarding(struct pas
Link Here
|
| 175 |
temporarily_use_uid(pw); |
176 |
temporarily_use_uid(pw); |
| 176 |
|
177 |
|
| 177 |
/* Allocate a buffer for the socket name, and format the name. */ |
178 |
/* Allocate a buffer for the socket name, and format the name. */ |
| 178 |
auth_sock_dir = xstrdup("/tmp/ssh-XXXXXXXXXX"); |
179 |
mktemp_proto(socket_dir, sizeof(socket_dir)); |
|
|
180 |
auth_sock_dir = xstrdup(socket_dir); |
| 179 |
|
181 |
|
| 180 |
/* Create private directory for socket */ |
182 |
/* Create private directory for socket */ |
| 181 |
if (mkdtemp(auth_sock_dir) == NULL) { |
183 |
if (mkdtemp(auth_sock_dir) == NULL) { |