Mageia Bugzilla – Attachment 14446 Details for
Bug 32954
upgrading/rebuildin pam-python for python-3.12
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
rediff of pam-python-1.0.6-fedora.patch
pam-python-1.1.0-fedora.patch (text/plain), 681 bytes, created by
Aurelian R
on 2024-03-10 10:54:00 CET
(
hide
)
Description:
rediff of pam-python-1.0.6-fedora.patch
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-03-10 10:54:00 CET
Size:
681 bytes
patch
obsolete
>diff -ur pam-python-1.0.6.orig/src/pam_python.c pam-python-1.0.6/src/pam_python.c >--- pam-python-1.0.6.orig/src/pam_python.c 2012-04-12 05:35:24.000000000 +0200 >+++ pam-python-1.0.6/src/pam_python.c 2012-10-19 11:25:06.570212299 +0200 >@@ -32,6 +32,7 @@ > #endif > > #undef _POSIX_C_SOURCE >+#undef _XOPEN_SOURCE > > #define PY_SSIZE_T_CLEAN > #include <Python.h> >@@ -1496,7 +1497,7 @@ > pamHandle->pamh, PAM_XAUTHDATA, (const void**)&xauth_data); > if (check_pam_result(pamHandle, pam_result) == -1) > goto error_exit; >- if (xauth_data == 0) >+ if (xauth_data == 0 || (xauth_data->namelen == 0 && xauth_data->datalen == 0)) > { > result = Py_None; > Py_INCREF(result);
diff -ur pam-python-1.0.6.orig/src/pam_python.c pam-python-1.0.6/src/pam_python.c --- pam-python-1.0.6.orig/src/pam_python.c 2012-04-12 05:35:24.000000000 +0200 +++ pam-python-1.0.6/src/pam_python.c 2012-10-19 11:25:06.570212299 +0200 @@ -32,6 +32,7 @@ #endif #undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE #define PY_SSIZE_T_CLEAN #include <Python.h> @@ -1496,7 +1497,7 @@ pamHandle->pamh, PAM_XAUTHDATA, (const void**)&xauth_data); if (check_pam_result(pamHandle, pam_result) == -1) goto error_exit; - if (xauth_data == 0) + if (xauth_data == 0 || (xauth_data->namelen == 0 && xauth_data->datalen == 0)) { result = Py_None; Py_INCREF(result);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32954
:
14445
| 14446 |
14447