Path: utzoo!attcan!uunet!munnari!otc!metro!basser!usage!ccadfa!cancol!ross From: ross@cancol.oz (Ross Johnson) Newsgroups: comp.sources.bugs Subject: Re: "monthd" doesn't terminate Keywords: month, exit, sun os3.2, strtok Message-ID: <115@cancol.oz> Date: 17 Nov 88 03:26:37 GMT References: <1252@leah.Albany.Edu> Organization: Info. Sciences, Canberra Coll. of Adv. Ed. Lines: 44 In article <1252@leah.Albany.Edu>, rds95@leah.Albany.Edu (Robert Seals) writes: > I brought up the recently posted "month". The program itself seems to > work quite nicely, but the daemon program that checks for appointments > does not. Specifically, it should go away after the user logs out, and it > doesn't. I don't think it works at all, actually, cuz it hasn't been > announcing my engagements, as it ought to. > I've experienced the same thing on a Sun running OS3.2 (for cross-reference). There's also a bug in the strtok() function in schedule.c which causes a core dump if you try to post an event to a group (`G' command). A context diff follows : *** schedule.c.dist Mon Nov 14 22:39:41 1988 --- schedule.c Mon Nov 14 22:47:06 1988 *************** *** 743,755 **** char *s1, *s2; { static char *pos; ! char *p, *q; if (s1 != (char *)NULL) pos = s1; ! if (*pos == '\0') ! return((char *)NULL); for (p = pos; *p != '\0'; p++) { if (index(s2, (int) *p) == (char *)NULL) --- 743,755 ---- char *s1, *s2; { static char *pos; ! char *p, *q, *index(); if (s1 != (char *)NULL) pos = s1; ! if (pos == (char *)NULL || *pos == '\0') ! return((char *)NULL); for (p = pos; *p != '\0'; p++) { if (index(s2, (int) *p) == (char *)NULL)