aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetchmail.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 3b72b8da..31427577 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1252,6 +1252,12 @@ static int load_params(int argc, char **argv, int optind)
#endif /* HAVE_GETHOSTBYNAME */
}
}
+ else
+ /*
+ * This is a kluge. It enables users to edit their
+ * configurations when DNS isn't available.
+ */
+ ctl->server.truename = xstrdup(ctl->server.queryname);
/* if no folders were specified, set up the null one as default */
if (!ctl->mailboxes)