]> Pileus Git - ~andy/fetchmail/commitdiff
Kluge to enable --configdump even when DNS is not available.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 5 Mar 2001 23:16:38 +0000 (23:16 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 5 Mar 2001 23:16:38 +0000 (23:16 -0000)
svn path=/trunk/; revision=3207

fetchmail.c

index 3b72b8da470efd1232394d298bc35d56f1a53d66..31427577768450108dc9a4fec6d00b2cde4340b3 100644 (file)
@@ -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)