aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-06-16 05:47:05 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-06-16 05:47:05 +0000
commitd59205c392bcca928fd713abea5a002a6ce96890 (patch)
tree1a5b56fa78c4679e4a0c0169c3a03e3c14e076b5 /fetchmail.c
parentbf1bcff2fec9f67fbede95725e0958df67b8bc48 (diff)
downloadfetchmail-d59205c392bcca928fd713abea5a002a6ce96890.tar.gz
fetchmail-d59205c392bcca928fd713abea5a002a6ce96890.tar.bz2
fetchmail-d59205c392bcca928fd713abea5a002a6ce96890.zip
Another option fix from Gunther.
svn path=/trunk/; revision=1937
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 74b2edbc..f9e6c9c6 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -707,13 +707,13 @@ static void optmerge(struct query *h2, struct query *h1, int force)
* as defaults). If force is on, modify each h2 field whenever h1
* is nonempty (treat h1 as an override).
*/
-
-#define LIST_MERGE(fld) if (force ? !!h1->fld : !h2->fld) \
- append_str_list(&h2->fld, &h1->fld)
- LIST_MERGE(server.localdomains);
- LIST_MERGE(localnames);
- LIST_MERGE(mailboxes);
- LIST_MERGE(smtphunt);
+#define LIST_MERGE(dstl, srcl) if (force ? !!srcl : !dstl) \
+ free_str_list(&dstl), \
+ append_str_list(&dstl, &srcl)
+ LIST_MERGE(h2->server.localdomains, h1->server.localdomains);
+ LIST_MERGE(h2->localnames, h1->localnames);
+ LIST_MERGE(h2->mailboxes, h1->mailboxes);
+ LIST_MERGE(h2->smtphunt, h1->smtphunt);
#undef LIST_MERGE
#define FLAG_MERGE(fld) if (force ? !!h1->fld : !h2->fld) h2->fld = h1->fld
@@ -741,6 +741,7 @@ static void optmerge(struct query *h2, struct query *h1, int force)
FLAG_MERGE(server.interface_pair);
#endif /* linux */
+ FLAG_MERGE(wildcard);
FLAG_MERGE(remotename);
FLAG_MERGE(password);
FLAG_MERGE(mda);