зеркало из https://github.com/Azure/sonic-openssh.git
- (djm) Always use saved_argv in sshd.c as compat_init_setproctitle may
clobber
This commit is contained in:
Родитель
f3bff94957
Коммит
f2e3e9deba
|
@ -1,5 +1,7 @@
|
||||||
20030602
|
20030602
|
||||||
- (djm) Fix segv from bad reordering in auth-pam.c
|
- (djm) Fix segv from bad reordering in auth-pam.c
|
||||||
|
- (djm) Always use saved_argv in sshd.c as compat_init_setproctitle may
|
||||||
|
clobber
|
||||||
|
|
||||||
20030530
|
20030530
|
||||||
- (dtucker) Add missing semicolon in md5crypt.c, patch from openssh at
|
- (dtucker) Add missing semicolon in md5crypt.c, patch from openssh at
|
||||||
|
@ -1626,4 +1628,4 @@
|
||||||
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
||||||
ok provos@
|
ok provos@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2755 2003/06/02 02:13:40 djm Exp $
|
$Id: ChangeLog,v 1.2756 2003/06/02 02:15:54 djm Exp $
|
||||||
|
|
2
sshd.c
2
sshd.c
|
@ -825,7 +825,6 @@ main(int ac, char **av)
|
||||||
|
|
||||||
/* Save argv. Duplicate so setproctitle emulation doesn't clobber it */
|
/* Save argv. Duplicate so setproctitle emulation doesn't clobber it */
|
||||||
saved_argc = ac;
|
saved_argc = ac;
|
||||||
saved_argv = av;
|
|
||||||
saved_argv = xmalloc(sizeof(*saved_argv) * (ac + 1));
|
saved_argv = xmalloc(sizeof(*saved_argv) * (ac + 1));
|
||||||
for (i = 0; i < ac; i++)
|
for (i = 0; i < ac; i++)
|
||||||
saved_argv[i] = xstrdup(av[i]);
|
saved_argv[i] = xstrdup(av[i]);
|
||||||
|
@ -834,6 +833,7 @@ main(int ac, char **av)
|
||||||
#ifndef HAVE_SETPROCTITLE
|
#ifndef HAVE_SETPROCTITLE
|
||||||
/* Prepare for later setproctitle emulation */
|
/* Prepare for later setproctitle emulation */
|
||||||
compat_init_setproctitle(ac, av);
|
compat_init_setproctitle(ac, av);
|
||||||
|
av = saved_argv;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize configuration options to their default values. */
|
/* Initialize configuration options to their default values. */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче