aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-11 02:23:28 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-11 02:23:28 +0000
commit8f826df8fbadd811f6bcc31344e3d8472bd6f2bb (patch)
treeb58fefa9fefe9ebb3ecc7721c464d978a0fc41c8
parentdd6e5c6501f58c49445f2d5b5da978183303f275 (diff)
downloadfetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.tar.gz
fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.tar.bz2
fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.zip
Code changes needed for next release.
svn path=/trunk/; revision=2552
-rw-r--r--NEWS4
-rw-r--r--daemon.c2
-rw-r--r--fetchmail.c8
-rw-r--r--imap.c15
4 files changed, 19 insertions, 10 deletions
diff --git a/NEWS b/NEWS
index 50a7c7ac..b2fa06de 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,10 @@
Release Notes:
+fetchmail-5.0.8 ():
+* Todd Sabin's patch to accept spaces in CRAM-MD5 names.
+* Fix to endianness patch, by Dan Root via Lawrence Rogers.
+
fetchmail-5.0.7 (Sat Aug 21 04:26:13 EDT 1999):
* RPA support works again.
* Added debian_rc startup/shutdown script to contrib/.
diff --git a/daemon.c b/daemon.c
index 5937524b..08366bf1 100644
--- a/daemon.c
+++ b/daemon.c
@@ -56,6 +56,7 @@ RETSIGTYPE
sigchld_handler (int sig)
/* process SIGCHLD to obtain the exit code of the terminating process */
{
+ extern volatile int lastsig; /* last signal received */
pid_t pid;
#if defined(HAVE_WAITPID) /* the POSIX way */
@@ -77,6 +78,7 @@ sigchld_handler (int sig)
wait(&status);
#endif
+ lastsig = SIGCHLD;
}
int
diff --git a/fetchmail.c b/fetchmail.c
index ee790597..28c7515c 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -72,6 +72,7 @@ char *home; /* invoking user's home directory */
char *program_name; /* the name to prefix error messages with */
flag configdump; /* dump control blocks for configurator */
const char *fetchmailhost; /* either `localhost' or the host's FQDN */
+volatile int lastsig; /* last signal received */
#if NET_SECURITY
void *request = NULL;
@@ -81,7 +82,6 @@ int requestlen = 0;
static char *lockfile; /* name of lockfile */
static int querystatus; /* status of query */
static int successes; /* count number of successful polls */
-static int lastsig; /* last signal received */
static struct runctl cmd_run; /* global options set from command line */
static void termhook(int); /* forward declaration of exit hook */
@@ -757,8 +757,10 @@ int main(int argc, char **argv)
timeout.tv_sec = run.poll_interval;
timeout.tv_usec = 0;
- lastsig = 0;
- select(0,0,0,0, &timeout);
+ do {
+ lastsig = 0;
+ select(0,0,0,0, &timeout);
+ } while (lastsig == SIGCHLD);
#endif
#else /* EMX */
alarm_latch = FALSE;
diff --git a/imap.c b/imap.c
index 0b39e1c2..101f4030 100644
--- a/imap.c
+++ b/imap.c
@@ -261,7 +261,14 @@ static int do_rfc1731(int sock, char *truename)
return result;
}
- /* this patch by Dan Root <dar@thekeep.org> solves an endianess problem. */
+ len = from64tobits(challenge1.cstr, buf1);
+ if (len < 0) {
+ report(stderr, _("could not decode initial BASE64 challenge\n"));
+ return PS_AUTHFAIL;
+ }
+
+ /* this patch by Dan Root <dar@thekeep.org> solves an endianess
+ * problem. */
{
char tmp[4];
@@ -269,12 +276,6 @@ static int do_rfc1731(int sock, char *truename)
memcpy(challenge1.cstr, tmp, sizeof(tmp));
}
- len = from64tobits(challenge1.cstr, buf1);
- if (len < 0) {
- report(stderr, _("could not decode initial BASE64 challenge\n"));
- return PS_AUTHFAIL;
- }
-
/* Client responds with a Kerberos ticket and an authenticator for
* the principal "imap.hostname@realm" where "hostname" is the
* first component of the host name of the server with all letters