Bugzilla – Attachment 908 Details for
Bug 1030
sshd writes twice to wtmp when "UseLogin" is yes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Optimized patch for HP-UX
UseLogin-2entry.patch (text/plain), 1008 bytes, created by
senthilkumar
on 2005-05-11 22:10:30 AEST
(
hide
)
Description:
Optimized patch for HP-UX
Filename:
MIME Type:
Creator:
senthilkumar
Created:
2005-05-11 22:10:30 AEST
Size:
1008 bytes
patch
obsolete
>--- openssh-4.0p1/loginrec.c 2005-02-15 16:49:28.000000000 +0530 >+++ openssh-4.0p1-2entry/loginrec.c 2005-05-11 11:05:52.000000000 +0530 >@@ -156,6 +156,7 @@ > #include "canohost.h" > #include "auth.h" > #include "buffer.h" >+#include "servconf.h" > > #ifdef HAVE_UTIL_H > # include <util.h> >@@ -194,6 +195,7 @@ > int wtmpx_get_entry(struct logininfo *li); > > extern Buffer loginmsg; >+extern ServerOptions options; > > /* pick the shortest string */ > #define MIN_SIZEOF(s1,s2) (sizeof(s1) < sizeof(s2) ? sizeof(s1) : sizeof(s2)) >@@ -466,13 +468,19 @@ > utmp_write_entry(li); > # endif > # ifdef USE_WTMP >- wtmp_write_entry(li); >+#ifdef __hpux >+ if(!options.use_login) >+#endif >+ wtmp_write_entry(li); > # endif > # ifdef USE_UTMPX > utmpx_write_entry(li); > # endif > # ifdef USE_WTMPX >- wtmpx_write_entry(li); >+#ifdef __hpux >+ if(!options.use_login) >+#endif >+ wtmpx_write_entry(li); > # endif > return (0); > }
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 1030
:
896
| 908