If the LDB_ERR_* code is not recognized by sysdb_error_to_errno function, it returns EFAULT by default. This caused confusion in the case when SSSD tried to store attribute with bad syntax to LDB (like in the ticket https://fedorahosted.org/sssd/ticket/1440 ). Error message said "Bad address", which was inappropriate.
Patch is in attachment.
Michal
On Wed, Sep 19, 2012 at 05:42:35PM +0200, Michal Židek wrote:
If the LDB_ERR_* code is not recognized by sysdb_error_to_errno function, it returns EFAULT by default. This caused confusion in the case when SSSD tried to store attribute with bad syntax to LDB (like in the ticket https://fedorahosted.org/sssd/ticket/1440 ). Error message said "Bad address", which was inappropriate.
Patch is in attachment.
Michal
Ack,
for the record, this patch only eases the translation of ldb error codes to errno and does not solve ticket #1440.
On Wed, Sep 19, 2012 at 05:56:35PM +0200, Jakub Hrozek wrote:
On Wed, Sep 19, 2012 at 05:42:35PM +0200, Michal Židek wrote:
If the LDB_ERR_* code is not recognized by sysdb_error_to_errno function, it returns EFAULT by default. This caused confusion in the case when SSSD tried to store attribute with bad syntax to LDB (like in the ticket https://fedorahosted.org/sssd/ticket/1440 ). Error message said "Bad address", which was inappropriate.
Patch is in attachment.
Michal
Ack,
for the record, this patch only eases the translation of ldb error codes to errno and does not solve ticket #1440.
Pushed to master.
sssd-devel@lists.fedorahosted.org