Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 2696 Details for
Bug 5686
segfault with pam_wheel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
pam-0.75-pam_wheel-segfault.patch
pam-0.75-pam_wheel-segfault.patch (text/plain), 949 bytes, created by
Martin Schlemmer (RETIRED)
on 2002-07-30 18:52:55 UTC
(
hide
)
Description:
pam-0.75-pam_wheel-segfault.patch
Filename:
MIME Type:
Creator:
Martin Schlemmer (RETIRED)
Created:
2002-07-30 18:52:55 UTC
Size:
949 bytes
patch
obsolete
>--- Linux-PAM-0.75/modules/pam_wheel/pam_wheel.c.orig Wed Jul 31 01:24:03 2002 >+++ Linux-PAM-0.75/modules/pam_wheel/pam_wheel.c Wed Jul 31 01:30:36 2002 >@@ -162,9 +162,20 @@ > fromsu = tpwd->pw_name; > } else { > fromsu = getlogin(); >- if (_pam_getpwnam_r(fromsu, &passwd, &tbuf, &tbuflen, &tpwd) != 0) >- tpwd = NULL; >- if((!fromsu) || (!tpwd)) { >+ /* If this one fails, we get a segfault on calling _pam_getpwnam_r(), >+ * so rather revert to behavior as with "ctrl & PAM_USE_UID_ARG" >+ */ >+ if (!fromsu) { >+ if (_pam_getpwuid_r(getuid(), &passwd, &tbuf, &tbuflen, &tpwd) != 0) >+ tpwd = NULL; >+ if (tpwd) { >+ fromsu = tpwd->pw_name; >+ } >+ } else { >+ if (_pam_getpwnam_r(fromsu, &passwd, &tbuf, &tbuflen, &tpwd) != 0) >+ tpwd = NULL; >+ } >+ if (!tpwd) { > if (ctrl & PAM_DEBUG_ARG) > _pam_log(LOG_NOTICE,"who is running me ?!"); > return PAM_SERVICE_ERR;
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 5686
: 2696