Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 563674 Details for
Bug 677200
dev-libs/cyrus-sasl USE=gdbm with >=sys-libs/gdbm-1.17 does not report lookup failures correctly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
copy the correct errno value to check against later
0001-db_gdbm-fix-gdbm_errno-overlay-from-gdbm_close.patch (text/plain), 1.05 KB, created by
Jonas Jelten
on 2019-02-03 16:44:25 UTC
(
hide
)
Description:
copy the correct errno value to check against later
Filename:
MIME Type:
Creator:
Jonas Jelten
Created:
2019-02-03 16:44:25 UTC
Size:
1.05 KB
patch
obsolete
>From af48f6fec9a7b6374d4153c5db894d4a1f349645 Mon Sep 17 00:00:00 2001 >From: Jonas Jelten <jj@sft.mx> >Date: Sat, 2 Feb 2019 20:53:37 +0100 >Subject: [PATCH] db_gdbm: fix gdbm_errno overlay from gdbm_close > >`gdbm_close` also sets gdbm_errno since version 1.17. >This leads to a problem in `libsasl` as the `gdbm_close` incovation overlays >the `gdbm_errno` value which is then later used for the error handling. >--- > sasldb/db_gdbm.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/sasldb/db_gdbm.c b/sasldb/db_gdbm.c >index ee56a6b..c908808 100644 >--- a/sasldb/db_gdbm.c >+++ b/sasldb/db_gdbm.c >@@ -107,9 +107,11 @@ int _sasldb_getdata(const sasl_utils_t *utils, > gkey.dptr = key; > gkey.dsize = key_len; > gvalue = gdbm_fetch(db, gkey); >+ int fetch_errno = gdbm_errno; >+ > gdbm_close(db); > if (! gvalue.dptr) { >- if (gdbm_errno == GDBM_ITEM_NOT_FOUND) { >+ if (fetch_errno == GDBM_ITEM_NOT_FOUND) { > utils->seterror(conn, SASL_NOLOG, > "user: %s@%s property: %s not found in %s", > authid, realm, propName, path); >-- >2.20.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 677200
: 563674