[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problem with tar/sendmail/ls



I've been trying to get sendmail running without success. This is the
symptom:

$ /usr/sbin/sendmail -f evan evan < ~/test.msg
clnttcp_create: RPC: Program not registered
Segmentation fault
$ 

Now this looked just like a problem I had with tar a while back. When tar
refused to perform any operation that involved writing to a file (or
STDOUT) and bombed out with the same message. By the way, I also get the
clnttcp_create message with ls but it doesn't seg fault so -- like a bad
smell -- I can live with it.

Anyway, I'd solved the tar problem by commenting out lines 116-124 of
names.c:

  if (gid != savegid)
    {
      savegid = gid;
      savegname[0] = '\0';
      setgrent ();
      gr = getgrgid (gid);
      if (gr)
	strncpy (savegname, gr->gr_name, TGNMLEN);
    }

I didn't really understand what I was doing but it was falling over in this
section and commenting it out seemed to work. You've no idea how tough it
is trying to survive without tar until you've tried it. I was just grateful
that it worked. ;-)

But now I have a similar problem in sendmail which I can't work around and
I was hoping someone would recognise the symptoms. It seems to me that the
problem lies not with tar/sendmail/ls but rather with some feature of my
setup. I can mail stack traces and environment information etc to anyone
who's interested but that's probably enough for now.

Thanks...

-- 
#######################################################################
#  Evan Welsh <evan@quadstone.co.uk>                   Quadstone Ltd  #
#  http://www.quadstone.co.uk/~evan/             +44 (0)131 220 4491  #
#######################################################################


Reply to: