diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-10-08 14:34:22 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-10-08 14:34:22 +0000 |
commit | c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe (patch) | |
tree | 9b7c17d7bf73ffcf937eb9140535622df4c42d29 /fetchmail.c | |
parent | 288d03eaf77643d32abe2f009029e73955eb786c (diff) | |
download | fetchmail-c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe.tar.gz fetchmail-c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe.tar.bz2 fetchmail-c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe.zip |
Before showdots,
svn path=/trunk/; revision=2975
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fetchmail.c b/fetchmail.c index 3e41d1d9..28ad2aa2 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -102,7 +102,7 @@ static void unlockit(void) unlink(lockfile); } -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) && defined(__FreeBSD_USE_KVM) /* drop SGID kmem privileage until we need it */ static void dropprivs(void) { @@ -152,7 +152,7 @@ int main(int argc, char **argv) pid_t pid; int lastsig = 0; -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) && defined(__FreeBSD_USE_KVM) dropprivs(); #endif @@ -1146,8 +1146,7 @@ static int load_params(int argc, char **argv, int optind) /* prevent core dump from ill-formed or duplicate entry */ if (!leadname) { - report(stderr, - _("Lead server has no name.\n")); + report(stderr, _("Lead server has no name.\n")); exit(PS_SYNTAX); } @@ -1168,7 +1167,8 @@ static int load_params(int argc, char **argv, int optind) report(stderr, _("couldn't find canonical DNS name of %s\n"), ctl->server.pollname); - ctl->active = FALSE; + ctl->server.truename = xstrdup(ctl->server.queryname); + ctl->server.trueaddr = NULL; } else ctl->server.truename=xstrdup((char *)namerec->h_name); |