home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / mail / mush / 277 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.3 KB

  1. Path: sparky!uunet!nntp1.radiomail.net!fernwood!synopsys!news.synopsys.com!arnold
  2. From: arnold@synopsys.com (Arnold de Leon)
  3. Newsgroups: comp.mail.mush
  4. Subject: realname not being initialized correctly
  5. Summary: realname getting initialized spooldir
  6. Keywords: realname mush
  7. Message-ID: <1992Jul24.163916.4644@Synopsys.Com>
  8. Date: 24 Jul 92 16:39:16 GMT
  9. Sender: usenet@Synopsys.Com
  10. Organization: Synopsys, Inc.
  11. Lines: 39
  12.  
  13.  
  14. Mush Version 7.2.4
  15.  
  16. The following code fragrament from init.c seems indicate that the 
  17. HOMEMAIL stuff was added in the wrong place.
  18.  
  19. "realname" is copied from buf which will contain the name of the 
  20. spool file.
  21.  
  22.  
  23. #ifdef HOMEMAIL
  24.     strdup(spoolfile, sprintf(buf, "%s/%s", home, MAILFILE));
  25. #else /* HOMEMAIL */
  26.     if ((p = getenv("MAIL")) && *p)
  27.     strdup(spoolfile, p);
  28.     else
  29.     strdup(spoolfile, sprintf(buf, "%s/%s", MAILDIR, login));
  30. #endif /* HOMEMAIL */
  31.     mailfile = "";
  32.  
  33.     if (realname && *buf) {
  34.     /* realname has already been copied to buf */
  35.     argv[0] = "realname";
  36.     argv[2] = buf;
  37.     (void) add_option(&set_options, argv);
  38.     }
  39.  
  40.  
  41. Moving the "realname" back just after the other code
  42. that seems to be related to it seems to fix the problem.
  43.  
  44. It this correct?
  45.  
  46.     arnold
  47. -- 
  48. Arnold de Leon              arnold@synopsys.com
  49. Network Manager                Synopsys Inc.
  50. (415) 694-4183                700 E. Middlefield Road
  51.                     Mtn. View, CA 94043-4033
  52.