Article View: news.software.nntp
Article #1932Trn 3.0 "cancel" broken because of wrong hostname
From: Guy Middleton
Date: Wed, 09 Jun 1993 19:02
Date: Wed, 09 Jun 1993 19:02
46 lines
2108 bytes
2108 bytes
I tried cancelling an article, and (with -D debug) it says:
gamiddle@/software/trn-3.0/data/whoami != gamiddle@math.uwaterloo.ca (Guy Middleton)
Not your article
/software/trn-3.0/data/whoami is the name of the data file that contains the
hostname.
The following patch to intrp.c fixes this. The important thing is to move
the savestr(buf) to the end of the function; otherwise buf's contents are
never used.
I didn't understand what all the index() stuff does, so I just removed it.
It may have do something useful in the cases where the hostname is derived
from uname() or gethostname().
*** 1.1 1993/06/09 18:29:06
--- intrp.c 1993/06/09 18:50:38
***************
*** 177,192 ****
# endif /* PHOSTCMD */
# endif /* HAS_UNAME */
#endif /* HAS_GETHOSTNAME */
- if (*buf) {
- char *cp = index(buf,'.');
- if (cp)
- *cp = '\0';
- cp = index(phostname,'.');
- if (cp)
- strcat(buf,cp);
- phostname = savestr(buf);
- }
}
}
/* expand filename via %, ~, and $ interpretation */
--- 177,185 ----
# endif /* PHOSTCMD */
# endif /* HAS_UNAME */
#endif /* HAS_GETHOSTNAME */
}
+ if (*buf)
+ phostname = savestr(buf);
}
/* expand filename via %, ~, and $ interpretation */
Technical Details
Message-ID:
<C8DBJM.3A2@math.uwaterloo.ca>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!utnut!torn!watserv2.uwaterloo.ca!watmath!gamiddleReferences:
<C866H1.7ur@borland.com>Show Full Headers
Complete Article Headers
Message-ID: <C8DBJM.3A2@math.uwaterloo.ca> Subject: Trn 3.0 "cancel" broken because of wrong hostname Date: Wed, 9 Jun 1993 19:02:09 GMT From: gamiddle@math.uwaterloo.ca (Guy Middleton) References: <C866H1.7ur@borland.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!utnut!torn!watserv2.uwaterloo.ca!watmath!gamiddle Newsgroups: news.software.readers,news.software.nntp Keywords: cancel bugfix hostname Sender: news@math.uwaterloo.ca (News Owner) Organization: University of Waterloo Software Liberation Army Lines: 46