summaryrefslogtreecommitdiff
path: root/debian/patches/visibility
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2012-06-22 10:35:36 +0200
committerTimo Weingärtner <timo@tiwe.de>2012-11-08 08:21:50 +0100
commit09cf8097c6bdf0011cf78c6000c6dcbdb7618cf0 (patch)
tree9771fc04b4222e83699a672cf08031cb5f3a0f59 /debian/patches/visibility
parent65b4c91edbadc3e63bea9c5e6fb91e28aa2fe663 (diff)
downloadlibpam-pwdfile-5a99e73189439f91a02b4b0011c4b0c530cf3b8f.tar.gz
Imported Debian patch 0.99-5debian/0.99-5
Diffstat (limited to 'debian/patches/visibility')
-rw-r--r--debian/patches/visibility23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/visibility b/debian/patches/visibility
new file mode 100644
index 0000000..d121a1e
--- /dev/null
+++ b/debian/patches/visibility
@@ -0,0 +1,23 @@
+Description: Mark the pam_sm_* functions as __attribute__((visibility("default")))
+Author: Peter Palfrader <weasel@debian.org>
+Bug-Debian: http://bugs.debian.org/499203
+Last-Update: 2012-06-20
+
+--- libpam-pwdfile-0.99.orig/pam_pwdfile.c
++++ libpam-pwdfile-0.99/pam_pwdfile.c
+@@ -222,6 +222,7 @@
+ }
+
+ /* expected hook for auth service */
++__attribute__((visibility("default")))
+ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags,
+ int argc, const char **argv) {
+ int retval, pcnt, pwdfilename_found;
+@@ -408,6 +409,7 @@
+ }
+
+ /* another expected hook */
++__attribute__((visibility("default")))
+ PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags,
+ int argc, const char **argv)
+ {