Bugzilla – Attachment 690 Details for
Bug 899
sshd displays illegal usernames through setproctitle()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
this patch fixes the bug
openssh-3.8.1p1-baduser.patch (text/plain), 1.34 KB, created by
Pavel Kankovsky
on 2004-07-21 07:22:55 AEST
(
hide
)
Description:
this patch fixes the bug
Filename:
MIME Type:
Creator:
Pavel Kankovsky
Created:
2004-07-21 07:22:55 AEST
Size:
1.34 KB
patch
obsolete
>diff -urN -x'*:ORIG' openssh-3.8.1p1.old/auth1.c openssh-3.8.1p1/auth1.c >--- openssh-3.8.1p1.old/auth1.c Mon Mar 8 13:04:07 2004 >+++ openssh-3.8.1p1/auth1.c Sun Jul 11 12:43:43 2004 >@@ -302,7 +302,7 @@ > authctxt->pw = fakepw(); > } > >- setproctitle("%s%s", authctxt->pw ? user : "unknown", >+ setproctitle("%s%s", authctxt->valid ? user : "unknown", > use_privsep ? " [net]" : ""); > > #ifdef USE_PAM >diff -urN -x'*:ORIG' openssh-3.8.1p1.old/auth2.c openssh-3.8.1p1/auth2.c >--- openssh-3.8.1p1.old/auth2.c Mon Mar 8 13:04:07 2004 >+++ openssh-3.8.1p1/auth2.c Sun Jul 11 12:43:43 2004 >@@ -166,7 +166,7 @@ > PRIVSEP(start_pam(authctxt)); > #endif > } >- setproctitle("%s%s", authctxt->pw ? user : "unknown", >+ setproctitle("%s%s", authctxt->valid ? user : "unknown", > use_privsep ? " [net]" : ""); > authctxt->service = xstrdup(service); > authctxt->style = style ? xstrdup(style) : NULL; >diff -urN -x'*:ORIG' openssh-3.8.1p1.old/auth-pam.c openssh-3.8.1p1/auth-pam.c >--- openssh-3.8.1p1.old/auth-pam.c Sun Apr 18 03:00:26 2004 >+++ openssh-3.8.1p1/auth-pam.c Tue Jul 20 23:16:30 2004 >@@ -335,7 +335,7 @@ > const char *pam_user; > > pam_get_item(sshpam_handle, PAM_USER, (const void **)&pam_user); >- setproctitle("%s [pam]", pam_user); >+ setproctitle("%s [pam]", sshpam_authctxt && sshpam_authctxt->valid ? pam_user : "unknown"); > environ[0] = 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 899
: 690