FreeBSD Bugzilla – Attachment 15799 Details for
Bug 29193
[PATCH] /usr/bin/login.c doesn´t save variables from pam_open_session
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 857 bytes, created by
Volker Stolz
on 2001-07-24 17:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Volker Stolz
Created:
2001-07-24 17:30:00 UTC
Size:
857 bytes
patch
obsolete
>--- login.orig Fri Jul 20 11:05:23 2001 >+++ login.c Tue Jul 24 18:16:07 2001 >@@ -575,18 +575,6 @@ > if (!pflag) > environ = envinit; > >-#ifdef USE_PAM >- /* >- * Add any environmental variables that the >- * PAM modules may have set. >- */ >- if (pamh) { >- environ_pam = pam_getenvlist(pamh); >- if (environ_pam) >- export_pam_environment(); >- } >-#endif /* USE_PAM */ >- > /* > * PAM modules might add supplementary groups during pam_setcred(). > */ >@@ -605,6 +593,15 @@ > syslog(LOG_ERR, "pam_setcred: %s", > pam_strerror(pamh, e)); > } >+ >+ /* >+ * Add any environmental variables that the >+ * PAM modules may have set. >+ * Call *after* opening session! >+ */ >+ environ_pam = pam_getenvlist(pamh); >+ if (environ_pam) >+ export_pam_environment(); > > /* > * We must fork() before setuid() because we need to call
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 29193
: 15799