Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 687234 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure.ac (+3 lines)
Lines 599-604 dnl Link Here
599
AC_CHECK_DECL(__NR_keyctl, [have_key_syscalls=1],[have_key_syscalls=0],[#include <sys/syscall.h>])
599
AC_CHECK_DECL(__NR_keyctl, [have_key_syscalls=1],[have_key_syscalls=0],[#include <sys/syscall.h>])
600
AC_CHECK_DECL(ENOKEY, [have_key_errors=1],[have_key_errors=0],[#include <errno.h>])
600
AC_CHECK_DECL(ENOKEY, [have_key_errors=1],[have_key_errors=0],[#include <errno.h>])
601
601
602
# musl and bionic don't have strndupa
603
AC_CHECK_DECLS_ONCE([strndupa])
604
602
HAVE_KEY_MANAGEMENT=0
605
HAVE_KEY_MANAGEMENT=0
603
if test $have_key_syscalls$have_key_errors = 11
606
if test $have_key_syscalls$have_key_errors = 11
604
then
607
then
(-)a/libpam/include/missing.h (+12 lines)
Line 0 Link Here
1
#pragma once
2
3
#if !HAVE_DECL_STRNDUPA
4
#define strndupa(s, n)                                                  \
5
        ({                                                              \
6
                const char *__old = (s);                                \
7
                size_t __len = strnlen(__old, (n));                     \
8
                char *__new = alloca(__len + 1);                        \
9
                __new[__len] = '\0';                                    \
10
                memcpy(__new, __old, __len);                            \
11
         })
12
#endif
(-)a/modules/pam_exec/pam_exec.c (-1 / +1 lines)
Lines 59-64 Link Here
59
#include <security/pam_modutil.h>
59
#include <security/pam_modutil.h>
60
#include <security/pam_ext.h>
60
#include <security/pam_ext.h>
61
#include <security/_pam_macros.h>
61
#include <security/_pam_macros.h>
62
#include <missing.h>
62
63
63
#define ENV_ITEM(n) { (n), #n }
64
#define ENV_ITEM(n) { (n), #n }
64
static struct {
65
static struct {
65
- 

Return to bug 687234