Bugzilla – Attachment 552 Details for
Bug 529
sshd doesn't work correctly after SIGHUP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
New patch for re-apeared problem with save_argv
openssh-3.7.1p2-saveargv-fix.diff (text/plain), 553 bytes, created by
Petr Ostadal
on 2004-02-24 21:31:45 AEDT
(
hide
)
Description:
New patch for re-apeared problem with save_argv
Filename:
MIME Type:
Creator:
Petr Ostadal
Created:
2004-02-24 21:31:45 AEDT
Size:
553 bytes
patch
obsolete
>--- sshd.c >+++ sshd.c >@@ -313,6 +313,7 @@ > static void > sighup_restart(void) > { >+ int i; > logit("Received SIGHUP; restarting."); > close_listen_socks(); > close_startup_pipes(); >@@ -889,7 +890,11 @@ > #ifndef HAVE_SETPROCTITLE > /* Prepare for later setproctitle emulation */ > compat_init_setproctitle(ac, av); >- av = saved_argv; >+ >+ av = xmalloc(sizeof(*saved_argv) * (saved_argc + 1)); >+ for (i = 0; i < saved_argc; i++) >+ av[i] = xstrdup(saved_argv[i]); >+ av[i] = NULL; > #endif > > /* Initialize configuration options to their default values. */ >
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 529
:
301
| 552