From owner-taylor-uucp@gnu.ai.mit.edu Thu Apr 16 00:30:18 1992
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil nil nil nil nil nil nil nil nil nil nil nil "^From:" nil nil nil])
Received: from fuug.fi by dolphin.funet.fi with SMTP id AA09108
  (5.65c/IDA-1.4.3 for ojala); Thu, 16 Apr 1992 00:30:16 +0300
Received: from wookumz.gnu.ai.mit.edu by fuug.fi with SMTP id AA16527
  (5.65c/IDA-1.4.4 for <taylor-uucp-list@fuug.fi>); Thu, 16 Apr 1992 00:27:38 +0300
Received: by wookumz.gnu.ai.mit.edu (5.65/4.0)
	id <AA10990@wookumz.gnu.ai.mit.edu>; Wed, 15 Apr 92 16:54:31 -0400
Received: from relay2.UU.NET by wookumz.gnu.ai.mit.edu (5.65/4.0) with SMTP
	id <AA10984@wookumz.gnu.ai.mit.edu>; Wed, 15 Apr 92 16:54:24 -0400
Received: from uunet.uu.net (via LOCALHOST.UU.NET) by relay2.UU.NET with SMTP 
	(5.61/UUNET-internet-primary) id AA29985; Wed, 15 Apr 92 16:54:28 -0400
Received: from airs.UUCP by uunet.uu.net with UUCP/RMAIL
	(queueing-rmail) id 165334.21525; Wed, 15 Apr 1992 16:53:34 EDT
Received: by comton.airs.com (5.57/AIRS1.0)
	id AA27087; Wed, 15 Apr 92 16:10:50 -0400
Message-Id: <9204152010.AA27087@comton.airs.com>
In-Reply-To: <m0lbFnS-0001MGC@theus.rain.com>; from "John Theus" at Apr 15, 92 12:37 pm
X-Mailer: ELM [version 2.3 PL11]
From: ian@airs.com (Ian Lance Taylor)
To: john@theus.rain.com (John Theus)
Cc: taylor-uucp@gnu.ai.mit.edu
Subject: Re: problem with uuname
Date: Wed, 15 Apr 92 16:10:49 -0400

> My mailer (smail) uses uuname to determine its uucp neighbors for routing.
> When I switched over to the Taylor 1.03 uuname, my mailer broke with uuname
> returning an error saying it "Can't get login name".

That seems odd to me, since it means that your mailer is running under
a uid which isn't in your passwd file.

> Before I chase this any farther, it there any useful reason for
> uuname to need a login name, which it does in usysdep_initialize() in
> sys1.unx?

No, uuname doesn't need the login name.  I just made the following
patch to sys1.unx, which should fix your problem.

*** 1.71	1992/04/14 17:34:38
--- sys1.unx	1992/04/15 20:01:45
***************
*** 558,567 ****
      {
        q = getpwuid (getuid ());
        if (q == NULL)
! 	ulog (LOG_FATAL, "Can't get login name");
!       z = q->pw_name;
      }
!   zSlogin = xstrdup (z);
  
    if (fdaemon)
      {
--- 558,569 ----
      {
        q = getpwuid (getuid ());
        if (q == NULL)
! 	z = NULL;
!       else
! 	z = q->pw_name;
      }
!   if (z != NULL)
!     zSlogin = xstrdup (z);
  
    if (fdaemon)
      {
***************
*** 857,862 ****
--- 859,866 ----
  const char *
  zsysdep_login_name ()
  {
+   if (zSlogin == NULL)
+     ulog (LOG_FATAL, "Can't get login name");
    return zSlogin;
  }

-- 
Ian Taylor                     ian@airs.com                    uunet!airs!ian
First person to identify this quote wins a free e-mail message:
``Do you make a grievance of weighing so many pounds only, instead of three
  hundred?  Then why fret about living so many years only, instead of more?''

