summaryrefslogtreecommitdiff
path: root/security/pam-af/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2017-02-08 00:07:38 +0000
committerjoerg <joerg>2017-02-08 00:07:38 +0000
commitee2c92b660d359d91093bc5ba0d6b3c5ea4615c0 (patch)
treed87d7d1c1186f526af3fb5187dd1189e35cafddd /security/pam-af/patches
parent577541434046fbba81048cbc88e02a9df47e3c84 (diff)
downloadpkgsrc-ee2c92b660d359d91093bc5ba0d6b3c5ea4615c0.tar.gz
Don't force unaligned memory use. Bump revision.
Diffstat (limited to 'security/pam-af/patches')
-rw-r--r--security/pam-af/patches/patch-common_pam__af.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/security/pam-af/patches/patch-common_pam__af.h b/security/pam-af/patches/patch-common_pam__af.h
new file mode 100644
index 00000000000..c175cd8ac55
--- /dev/null
+++ b/security/pam-af/patches/patch-common_pam__af.h
@@ -0,0 +1,40 @@
+$NetBSD: patch-common_pam__af.h,v 1.1 2017/02/08 00:07:38 joerg Exp $
+
+Don't pessimize the build or even create unaligned access by forcing the
+structures to be packed.
+
+--- common/pam_af.h.orig 2017-01-08 20:09:41.718970211 +0000
++++ common/pam_af.h
+@@ -90,14 +90,6 @@
+ # define _PATH_BSHELL DEFSHL
+ #endif
+
+-#ifndef __packed
+-# ifdef __GNUC__
+-# define __packed __attribute__((packed))
+-# else /* __GNUC__ */
+-# define __packed
+-# endif /* __GNUC__ */
+-#endif
+-
+ #ifndef __unused
+ # ifdef __GNUC__
+ # define __unused __attribute__((unused))
+@@ -114,7 +106,7 @@ typedef struct hostrec {
+ unsigned long num;
+ time_t last_attempt;
+ unsigned long locked_for;
+-} __packed hostrec_t;
++} hostrec_t;
+
+ typedef struct hostrule {
+ uint mask;
+@@ -122,7 +114,7 @@ typedef struct hostrule {
+ long locktime;
+ char lock_cmd[MAX_CMD_LEN];
+ char unlock_cmd[MAX_CMD_LEN];
+-} __packed hostrule_t;
++} hostrule_t;
+ #define DEFAULT_ATTEMPTS ULONG_MAX
+ #define DEFAULT_LOCKTIME 0
+ #define DEFRULE "*"