Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 578486 Details for
Bug 687234
sys-libs/pam-1.3.1-r1: Fails to build against sys-libs/musl due to undefined 'strdupa' (glibc-specific extension)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add portability for non glibc systems
pam-1.3.1-portability-fixes.patch (text/plain), 1.72 KB, created by
Jory A. Pratt
on 2019-06-03 00:29:13 UTC
(
hide
)
Description:
add portability for non glibc systems
Filename:
MIME Type:
Creator:
Jory A. Pratt
Created:
2019-06-03 00:29:13 UTC
Size:
1.72 KB
patch
obsolete
>From acee004471a6c65b3fdccd8e485ff7ab58da7df4 Mon Sep 17 00:00:00 2001 >From: >Date: Wed, 10 Apr 2019 00:48:19 -0500 >Subject: [PATCH 3/3] add portability for non glibc systems > >--- > modules/pam_lastlog/pam_lastlog.c | 5 +++++ > modules/pam_rhosts/pam_rhosts.c | 4 +++- > 2 files changed, 8 insertions(+), 1 deletion(-) > >diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c >index 1a796b9..bd609bb 100644 >--- a/modules/pam_lastlog/pam_lastlog.c >+++ b/modules/pam_lastlog/pam_lastlog.c >@@ -26,6 +26,7 @@ > #include <sys/types.h> > #include <syslog.h> > #include <unistd.h> >+#include <paths.h> > > #if defined(hpux) || defined(sunos) || defined(solaris) > # ifndef _PATH_LASTLOG >@@ -403,7 +404,9 @@ last_login_write(pam_handle_t *pamh, int announce, int last_fd, > > if (announce & LASTLOG_WTMP) { > /* write wtmp entry for user */ >+#ifdef HAVE_LOGWTMP > logwtmp(last_login.ll_line, user, remote_host); >+#endif > } > > /* cleanup */ >@@ -714,7 +717,9 @@ pam_sm_close_session (pam_handle_t *pamh, int flags, > terminal_line = get_tty(pamh); > > /* Wipe out utmp logout entry */ >+#ifdef HAVE_LOGWTMP > logwtmp(terminal_line, "", ""); >+#endif > > return PAM_SUCCESS; > } >diff --git a/modules/pam_rhosts/pam_rhosts.c b/modules/pam_rhosts/pam_rhosts.c >index ed98d63..b33f342 100644 >--- a/modules/pam_rhosts/pam_rhosts.c >+++ b/modules/pam_rhosts/pam_rhosts.c >@@ -112,8 +112,10 @@ int pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, > > #ifdef HAVE_RUSEROK_AF > retval = ruserok_af (rhost, as_root, ruser, luser, PF_UNSPEC); >-#else >+#elif HAVE_RUSEROK > retval = ruserok (rhost, as_root, ruser, luser); >+#else >+ retval = 1; > #endif > if (retval != 0) { > if (!opt_silent || opt_debug) >-- >2.21.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 687234
:
578474
|
578476
|
578478
|
578482
|
578484
| 578486 |
578502