Bugzilla – Attachment 1639 Details for
Bug 1597
During ssh login, the motd may not appear
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Flushed pending output so motd is not lost
session.diff (text/plain), 560 bytes, created by
John Ata
on 2009-05-16 09:16:09 AEST
(
hide
)
Description:
Flushed pending output so motd is not lost
Filename:
MIME Type:
Creator:
John Ata
Created:
2009-05-16 09:16:09 AEST
Size:
560 bytes
patch
obsolete
>Index: build/session.c >=================================================================== >--- build/session.c (revision 4035) >+++ build/session.c (working copy) >@@ -875,6 +875,14 @@ > display_loginmsg(); > > do_motd(); >+#ifdef XTS >+ /* We need to flush pending output because even though the stdout >+ stream is now a terminal, uClibc honors the buffering at the time >+ of the exec when it was not a terminal and hence fully buffered. >+ When the shell is exec'd, the stream will be line buffered as >+ expected. */ >+ fflush(NULL); >+#endif > } > > /*
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 1597
:
1637
|
1638
|
1639
|
1694