🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #25

realname not being initialized correctly

#25
From: Arnold de Leon
Date: Fri, 24 Jul 1992 16:39
39 lines
1399 bytes
Mush Version 7.2.4

The following code fragrament from init.c seems indicate that the 
HOMEMAIL stuff was added in the wrong place.

"realname" is copied from buf which will contain the name of the 
spool file.


#ifdef HOMEMAIL
    strdup(spoolfile, sprintf(buf, "%s/%s", home, MAILFILE));
#else /* HOMEMAIL */
    if ((p = getenv("MAIL")) && *p)
	strdup(spoolfile, p);
    else
	strdup(spoolfile, sprintf(buf, "%s/%s", MAILDIR, login));
#endif /* HOMEMAIL */
    mailfile = "";

    if (realname && *buf) {
	/* realname has already been copied to buf */
	argv[0] = "realname";
	argv[2] = buf;
	(void) add_option(&set_options, argv);
    }


Moving the "realname" back just after the other code
that seems to be related to it seems to fix the problem.

It this correct?

	arnold
-- 
Arnold de Leon  			arnold@synopsys.com
Network Manager				Synopsys Inc.
(415) 694-4183				700 E. Middlefield Road
					Mtn. View, CA 94043-4033
Technical Details
Message-ID: <1992Jul24.163916.4644@Synopsys.Com>
Path: arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!fernwood!synopsys!news.synopsys.com!arnold

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!fernwood!synopsys!news.synopsys.com!arnold
From: arnold@synopsys.com (Arnold de Leon)
Newsgroups: comp.mail.mush
Subject: realname not being initialized correctly
Summary: realname getting initialized spooldir
Keywords: realname mush
Message-ID: <1992Jul24.163916.4644@Synopsys.Com>
Date: 24 Jul 92 16:39:16 GMT
Sender: usenet@Synopsys.Com
Organization: Synopsys, Inc.
Lines: 39