diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-12-15 07:45:15 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-12-15 07:45:15 +0000 |
commit | 6928abc43e245aae98a620afa35a1c76c7e55417 (patch) | |
tree | cf1570ab2690681d6101b8b752f1871250c85dd8 /testing/py-pam/PyPAM-0.5.0-return-value.patch | |
parent | 0648d40beb7f4599fae6376eb7e1eda69a6b0266 (diff) | |
download | aports-6928abc43e245aae98a620afa35a1c76c7e55417.tar.bz2 aports-6928abc43e245aae98a620afa35a1c76c7e55417.tar.xz |
testing/py-pam: new aport
Diffstat (limited to 'testing/py-pam/PyPAM-0.5.0-return-value.patch')
-rw-r--r-- | testing/py-pam/PyPAM-0.5.0-return-value.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/py-pam/PyPAM-0.5.0-return-value.patch b/testing/py-pam/PyPAM-0.5.0-return-value.patch new file mode 100644 index 0000000000..6e771e9949 --- /dev/null +++ b/testing/py-pam/PyPAM-0.5.0-return-value.patch @@ -0,0 +1,57 @@ +diff -up PyPAM-0.5.0/PAMmodule.c.retval PyPAM-0.5.0/PAMmodule.c +--- PyPAM-0.5.0/PAMmodule.c.retval 2012-05-04 21:47:51.000000000 +0200 ++++ PyPAM-0.5.0/PAMmodule.c 2012-05-07 09:42:27.690963206 +0200 +@@ -248,7 +248,7 @@ static PyObject * PyPAM_setcred(PyObject + result = pam_setcred(_self->pamh, flags); + + if (result != PAM_SUCCESS) { +- PyErr_SetString(PyPAM_Error, "Not authenticated"); ++ PyPAM_Err(_self, result); + return NULL; + } + +@@ -270,7 +270,7 @@ static PyObject * PyPAM_acct_mgmt(PyObje + result = pam_acct_mgmt(_self->pamh, flags); + + if (result != PAM_SUCCESS) { +- PyErr_SetString(PyPAM_Error, "Not authenticated"); ++ PyPAM_Err(_self, result); + return NULL; + } + +@@ -292,7 +292,7 @@ static PyObject * PyPAM_chauthtok(PyObje + result = pam_chauthtok(_self->pamh, flags); + + if (result != PAM_SUCCESS) { +- PyErr_SetString(PyPAM_Error, "Not authenticated"); ++ PyPAM_Err(_self, result); + return NULL; + } + +@@ -314,7 +314,7 @@ static PyObject * PyPAM_open_session(PyO + result = pam_open_session(_self->pamh, flags); + + if (result != PAM_SUCCESS) { +- PyErr_SetString(PyPAM_Error, "Not authenticated"); ++ PyPAM_Err(_self, result); + return NULL; + } + +@@ -336,7 +336,7 @@ static PyObject * PyPAM_close_session(Py + result = pam_close_session(_self->pamh, flags); + + if (result != PAM_SUCCESS) { +- PyErr_SetString(PyPAM_Error, "Not authenticated"); ++ PyPAM_Err(_self, result); + return NULL; + } + +@@ -433,7 +433,7 @@ static PyObject * PyPAM_putenv(PyObject + result = pam_putenv(_self->pamh, val); + + if (result != PAM_SUCCESS) { +- PyErr_SetString(PyPAM_Error, "Not authenticated"); ++ PyPAM_Err(_self, result); + return NULL; + } + |