mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-27 14:44:21 +08:00
- djm@cvs.openbsd.org 2009/10/06 04:46:40
[session.c] bz#1596: fflush(NULL) before exec() to ensure that everying (motd in particular) has made it out before the streams go away.
This commit is contained in:
parent
759cb2a49a
commit
695ed397a5
@ -84,6 +84,10 @@
|
||||
[dh.c]
|
||||
fix a cast
|
||||
ok djm@ markus@
|
||||
- djm@cvs.openbsd.org 2009/10/06 04:46:40
|
||||
[session.c]
|
||||
bz#1596: fflush(NULL) before exec() to ensure that everying (motd
|
||||
in particular) has made it out before the streams go away.
|
||||
|
||||
20091002
|
||||
- (djm) [Makefile.in] Mention readconf.o in ssh-keysign's make deps.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: session.c,v 1.246 2009/04/17 19:23:06 stevesk Exp $ */
|
||||
/* $OpenBSD: session.c,v 1.247 2009/10/06 04:46:40 djm Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||
* All rights reserved
|
||||
@ -1799,6 +1799,8 @@ do_child(Session *s, const char *command)
|
||||
exit(sftp_server_main(i, argv, s->pw));
|
||||
}
|
||||
|
||||
fflush(NULL);
|
||||
|
||||
if (options.use_login) {
|
||||
launch_login(pw, hostname);
|
||||
/* NEVERREACHED */
|
||||
|
Loading…
Reference in New Issue
Block a user