Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 469022 Details for
Bug 612712
net-mail/mailutils-3.2 compilation fails libmu_auth/.libs/libmu_auth.so: undefined reference to `mu_assoc_ref'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gentoo612712a.patch
gentoo612712a.patch (text/plain), 2.05 KB, created by
Martin von Gagern
on 2017-04-03 07:32:37 UTC
(
hide
)
Description:
gentoo612712a.patch
Filename:
MIME Type:
Creator:
Martin von Gagern
Created:
2017-04-03 07:32:37 UTC
Size:
2.05 KB
patch
obsolete
>From afbb33cf9ff750e93a9a4c1f51a3b62d584f056e Mon Sep 17 00:00:00 2001 >From: Sergey Poznyakoff <gray@gnu.org> >Date: Sun, 19 Mar 2017 17:31:08 +0200 >Subject: Fix a bug in field-map handling. > >* libmailutils/cfg/driver.c (parse_mapping): Fix expected value type. >* libmu_auth/sql.c (get_field): Remove left-over mu_assoc_ref call >(see 622bc770). >--- > NEWS | 2 +- > libmailutils/cfg/driver.c | 7 ++++++- > libmu_auth/sql.c | 11 +++++++---- > 3 files changed, 14 insertions(+), 6 deletions(-) > >diff --git a/libmailutils/cfg/driver.c b/libmailutils/cfg/driver.c >index 7da75a8..8af543d 100644 >--- a/libmailutils/cfg/driver.c >+++ b/libmailutils/cfg/driver.c >@@ -617,10 +617,15 @@ static int > parse_mapping (void *item, void *data) > { > struct mapping_closure *clos = data; >- char *str = item; >+ struct mu_config_value *cval = item; >+ char const *str; > size_t len; > char *key, *val; > int rc; >+ >+ if (mu_cfg_assert_value_type (cval, MU_CFG_STRING)) >+ return 1; >+ str = cval->v.string; > > len = strcspn (str, "="); > if (str[len] == 0) >diff --git a/libmu_auth/sql.c b/libmu_auth/sql.c >index d69c36c..c50598d 100644 >--- a/libmu_auth/sql.c >+++ b/libmu_auth/sql.c >@@ -214,20 +214,23 @@ mu_sql_expand_query (const char *query, const char *ustr) > static int > get_field (mu_sql_connection_t conn, const char *id, char **ret, int mandatory) > { >- const char **name = mu_assoc_ref (mu_sql_module_config.field_map, id); >- int rc = mu_sql_get_field (conn, 0, name ? *name : id, ret); >+ int rc; >+ const char *name = mu_assoc_get (mu_sql_module_config.field_map, id); >+ if (!name) >+ name = id; >+ rc = mu_sql_get_field (conn, 0, name, ret); > if (rc) > { > if (mandatory || rc != MU_ERR_NOENT) > mu_error (_("cannot get SQL field `%s' (`%s'): %s"), >- id, name ? *name : id, mu_strerror (rc)); >+ id, name, mu_strerror (rc)); > } > else if (!*ret) > { > if (mandatory) > { > mu_error (_("SQL field `%s' (`%s') has NULL value"), >- id, name ? *name : id); >+ id, name); > rc = MU_ERR_READ; > } > else >-- >cgit v1.0-41-gc330 >
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 612712
:
467204
|
467210
|
467212
|
467484
|
468488
| 469022