[563] in Zephyr_Bugs

home help back first fref pref prev next nref lref last post

A fix to znol

daemon@ATHENA.MIT.EDU (Daniel Bromberg)
Sun Sep 11 02:24:05 1994

To: zephyr-bugs@MIT.EDU
Date: Sun, 11 Sep 94 02:23:56 EDT
From: Daniel Bromberg <ddaniel@MIT.EDU>


Znol is currently unable to parse lines of the format:
username # arbitrary comment
which I consider an annoying limitation. Here is a diff of a patch I made and
the original source /mit/zephyr/src/clients/znol/znol.c:

134,135d133
< 		char *comment_ptr;
< 
142,151c140,141
< /*
<    Following is wee little patch to allow this format in .anyone files:
<    username # some comment
<    Added by Daniel Bromberg, Sun Sep 11 02:05:34 1994
< */
<                     if (comment_ptr = strchr(cleanname, '#'))
<                         *comment_ptr = '\0'; /* ignore from # onwards */
< 
<                     /* Get rid of old-style nol entries, just in case */
<                     cp = cleanname + strlen(cleanname) - 1;
---
> 		    /* Get rid of old-style nol entries, just in case */
> 		    cp = cleanname + strlen(cleanname) - 1;

Hope this is helpful.
								Daniel

home help back first fref pref prev next nref lref last post