Pathalias Problem

karl_kleinpaste at cis.ohio-state.edu karl_kleinpaste at cis.ohio-state.edu
Wed May 9 04:51:52 AEST 1990


gumby at ucrmath.UCR.EDU writes:
   ...pathalias is run with:
       /usr/lib/uucp/pathalias -i /usr/spool/uucp/Maps/* > /tmp/paths
   It complains that the "arg list too long" and terminates.

The problem is not with getopt(3).  The problem is that the number of
files is simply too large, for each to be a complete pathname not less
than 30 or so characters long -- the limit on how many things can be
passed to a program from the shell via argv[] is too small.

Change the way that pathalias is invoked, so that pathalias is invoked
from within the directory where the map files live:
	cd /usr/spool/uucp/Maps
	/usr/lib/uucp/pathalias -i * > /tmp/paths
and it'll probably work just fine again.

--karl



More information about the Comp.unix.xenix mailing list