]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/Linux-PAM-1.6.0-libpam:_fix_build_with_--enable-read-both-confs.patch
Merge branch 'next'
[people/pmueller/ipfire-2.x.git] / src / patches / Linux-PAM-1.6.0-libpam:_fix_build_with_--enable-read-both-confs.patch
diff --git a/src/patches/Linux-PAM-1.6.0-libpam:_fix_build_with_--enable-read-both-confs.patch b/src/patches/Linux-PAM-1.6.0-libpam:_fix_build_with_--enable-read-both-confs.patch
new file mode 100644 (file)
index 0000000..1736c5f
--- /dev/null
@@ -0,0 +1,11 @@
+--- Linux-PAM-1.6.0/libpam/pam_handlers.c.orig 2024-01-17 11:29:36.000000000 +0100
++++ Linux-PAM-1.6.0/libpam/pam_handlers.c      2024-01-22 16:02:45.546376172 +0100
+@@ -500,7 +500,7 @@
+               if (pamh->confdir == NULL
+                   && (f = fopen(PAM_CONFIG,"r")) != NULL) {
+-                  retval = _pam_parse_conf_file(pamh, f, NULL, PAM_T_ANY, 0, 1);
++                  retval = _pam_parse_conf_file(pamh, f, NULL, PAM_T_ANY, 0, 0, 1);
+                   fclose(f);
+               } else
+ #endif /* PAM_READ_BOTH_CONFS */