Bugzilla – Attachment 499 Details for
Bug 759
If sshd was started without explicit pathname, it dies when restarted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to sshd to fix pathless-restart trap
x (text/plain), 483 bytes, created by
Martin Guy
on 2003-11-15 09:08:16 AEDT
(
hide
)
Description:
Patch to sshd to fix pathless-restart trap
Filename:
MIME Type:
Creator:
Martin Guy
Created:
2003-11-15 09:08:16 AEDT
Size:
483 bytes
patch
obsolete
>*** sshd.c.orig Tue Sep 2 13:51:17 2003 >--- sshd.c Sat Nov 15 16:25:03 2003 >*************** >*** 261,266 **** >--- 261,270 ---- > close_listen_socks(); > close_startup_pipes(); > execv(saved_argv[0], saved_argv); >+ /* Maybe they invoked us as "sshd" using PATH to find the exe */ >+ if (strchr(saved_argv[0], '/') == NULL) { >+ execvp(saved_argv[0], saved_argv); >+ } > logit("RESTART FAILED: av[0]='%.100s', error: %.100s.", saved_argv[0], > strerror(errno)); > exit(1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 759
: 499