Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 4662 Details for
Bug 6612
pam_console not working?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
pam-0.75-pam_console-fix-fullpath-in-file-classes.patch
pam-0.75-pam_console-fix-fullpath-in-file-classes.patch (text/plain), 1.39 KB, created by
Martin Schlemmer (RETIRED)
on 2002-10-13 08:06:26 UTC
(
hide
)
Description:
pam-0.75-pam_console-fix-fullpath-in-file-classes.patch
Filename:
MIME Type:
Creator:
Martin Schlemmer (RETIRED)
Created:
2002-10-13 08:06:26 UTC
Size:
1.39 KB
patch
obsolete
>--- Linux-PAM-0.75/modules/pam_console/config.y.orig 2002-10-13 09:49:07.000000000 +0200 >+++ Linux-PAM-0.75/modules/pam_console/config.y 2002-10-13 10:08:52.000000000 +0200 >@@ -190,13 +190,37 @@ > if (check_one_console_name(consolename, this_list->data)) { > g_hash_table_insert(consoleHash, c, c); > found = 1; >+ } else { >+ /* consolename may contain the full path to the tty -- >+ * notebly pam-login sets PAM_TTY to a fully qualified filename. >+ */ >+ strcpy(full_path, "/dev/"); >+ strncat(full_path, this_list->data, >+ sizeof(full_path) - 1 - strlen(full_path)); >+ full_path[sizeof(full_path) - 1] = '\0'; >+ if (check_one_console_name(consolename, full_path)) { >+ g_hash_table_insert(consoleHash, c, c); >+ found = 1; >+ } > } > } > } else { > if (check_one_console_name(consolename, c->name)) { >- g_hash_table_insert(consoleHash, c, c); >- found = 1; >- } >+ g_hash_table_insert(consoleHash, c, c); >+ found = 1; >+ } else { >+ /* consolename may contain the full path to the tty -- >+ * notebly pam-login sets PAM_TTY to a fully qualified filename. >+ */ >+ strcpy(full_path, "/dev/"); >+ strncat(full_path, c->name, >+ sizeof(full_path) - 1 - strlen(full_path)); >+ full_path[sizeof(full_path) - 1] = '\0'; >+ if (check_one_console_name(consolename, full_path)) { >+ g_hash_table_insert(consoleHash, c, c); >+ found = 1; >+ } >+ } > } > } >
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 6612
:
3236
|
4654
| 4662