[news.software.b] Bug in Patch 9 fullname.c

imtsft@imt3b2.UUCP (IMT) (10/13/87)

BEWARE

The patch to fullname contained in patch 9 to usenet software breaks
the fullname function on AT&T SV machines and propably on others
running SV.

The patch to allow embedded spaces in the gecos information that 
is of the form:

 	: junk - full name ( junk :


changed the line:

		if (*p == '-') {

to:
		if (*p == '-' && isspace(p[1])) {

This change makes it imperative to have a space following the '-'.
The /etc/passwd file on AT&T machines has a gecos field that does
not have the space and is therefore not handled correctly.

The simple solution is to use the previous version of fullname.

------------------------------------------------------------------------------
name	: IMT (Group Administrator)
email	: ...(ccicpg|peregrine)!imt3b2!imtsft
------------------------------------------------------------------------------
-- 
---
Paul Czarnik
---