[net.mail] help with pathalias needed

ekb@ho3cad.UUCP (#ERIC K. BUSTAD ) (09/28/86)

I am having trouble getting the pathalias program to work on our machine.
Our machine, ho3cad, is an AT&T 3B20S running System V Release 2.  I am
using the version of pathalias that was in volume 3 of mod.sources. This
is marked as version "8.1 (down!honey) 86/01/19".  I compiled this without
making any changes to the source.  "config.h" looked fine for our machine,
so even that is unchanged.

I'd appreciate hearing from anyone who might have an idea as to what's
going on.

All that I get when I run pathalias is:

--------------------
You can't get there from here:
	
ho3cad	%s
--------------------

I get this both when using the UUCP maps from mod.map and when using my own
test input.

Here is an example of the test input I've used:

--------------------
ho3cad	ho2cad, ho7cad, ho8cad

ho7cad	ho3cad, ho2cad
ho8cad	ho3cad
--------------------

= Eric Bustad
  AT&T Bell Laboratories
  Holmdel NJ 07733-1988
  (201)949-6257
  ekb@ho3cad.ATT.COM or ihnp4!ho3cad!ekb

ekb@ho3cad.UUCP (#ERIC K. BUSTAD ) (09/29/86)

Bob Eby (pegasus!eby) has sent me the following fix to get pathalias to
work on our 3B20S:

	There is a minor bug in parse.y which prevents pathalias from working
	on the 3b20.  At around line 199, change the the declaration of "buf"
	to "static char buf[BUFSIZ]".  "errbuf" does not have to be declared
	static.  This was all I needed to get pathalias to run on our 3b20's.  

"buf" is used by yylex() to hold names read from the input and a pointer
to it is returned to yyparse() in the yylval structure.  Because it is a
local variable of yylex(), it must be declared as "static" so that it
still exists afer yylex() returns.

Much thanks, Bob!

= Eric Bustad
  AT&T Bell Laboratories
  Holmdel NJ 07733-1988
  (201)949-6257
  ekb@ho3cad.ATT.COM or ihnp4!ho3cad!ekb