diff -r biff+comsat-0.17/comsat/comsat.c biff+comsat-0.17-patch/comsat/comsat.c
42c42
<   "$Id: comsat.c,v 1.18 2000/07/23 04:16:20 dholland Exp $";
---
>   "$Id: comsat.c,v 1.17 1999/10/17 23:18:47 dholland Exp $";
79,80c79,80
< static void notify(struct utmp *utp, off_t offset);
< static void jkfprintf(FILE *, const char *name, off_t offset, const char *cr);
---
> static void notify(struct utmp *utp, off_t offset, char *mfile);
> static void jkfprintf(FILE *, const char *name, off_t offset, const char *cr, char *mfile);
275a276
> 	char *mfile;
280a282,285
> 	mfile = strchr(name, ':');
> 	mfile++;
> 	dsyslog(LOG_DEBUG, "mfile is %s\n", mfile);
> 	if (!mfile) return;
283a289
> 
288c294
< 			notify(utp, offset);
---
> 			notify(utp, offset, mfile);
316c322
< static void notify(struct utmp *utp, off_t offset)
---
> static void notify(struct utmp *utp, off_t offset, char *mfile)
429c435
< 	jkfprintf(tp, name, offset, cr);
---
> 	jkfprintf(tp, name, offset, cr, mfile);
442c448
< static void jkfprintf(FILE *tp, const char *name, off_t offset, const char *cr)
---
> static void jkfprintf(FILE *tp, const char *name, off_t offset, const char *cr, char *mfile)
467,470c473
< 	if (setuid(p->pw_uid)!=0) {
< 		syslog(LOG_AUTH | LOG_NOTICE, "Cannot setuid");
< 		return;
< 	}
---
> 	setuid(p->pw_uid);
475c478
< 	fi = fopen(name, "r");
---
> 	fi = fopen(mfile, "r");
