[net.unix] Dumb question about uucp, in INFO-UNIX Digest V1#142

stef%NMA@uci-icsa.ARPA (08/31/85)

ATTEN: gww@aphasia.UUCP

Your question is not as dumb as the problem with compiled-in machine names.

I once had a Callan, and a WICAT before that.  Same problems, and worse.

Then I moved to an ALTOS-586 XENIX and it also has the machine name compiled 
into the uucp programs.  We solved the problem with a C program written to 
find and replace the compiled-in name string in the following binary programs.

		 /bin/{mail*,rmail*,uucp*,uulog*,uux*}

When you do this, be very careful to remember (and restore) the original 
ownership and protections on all those files.  As I recall it is neither 
intuitive nor obvious to a casual observer.  (E.G. DO IT CAREFULLY!)

-rws--x--x 1 root      14218 Jul 25 21:03 /bin/mail*
-rws--x--x 1 root      14218 Jul 25 21:04 /bin/rmail*
-rws--x--x 1 uucp      21246 Jul 25 21:04 /bin/uucp*
-rwx--x--x 1 bin       12092 Jul 25 21:05 /bin/uulog*
-rws--x--x 1 uucp      20698 Jul 25 21:05 /bin/uux*

You might call this solution bizzarre or even baroque, but it works, 
without chasing source on variant machines, and without violation of 
licences, etc, et al, ad nauseum ...

Try it, You might Like It.   ---   stef@uci-icsa.arpa
				   stef%nma@uci-icsa.arpa
				   stef@brl-aos.arpa
				   brl!stef.UUCP

Reply-To:   INFO-UNIX@BRL.ARPA

jeq@laidbak.UUCP (Jonathan E. Quist) (09/02/85)

In article <1145@brl-tgr.ARPA> stef%NMA@uci-icsa.ARPA writes:
>ATTEN: gww@aphasia.UUCP
>
>Your question is not as dumb as the problem with compiled-in machine names.
>Then I moved to an ALTOS-586 XENIX and it also has the machine name compiled 
>into the uucp programs.  We solved the problem with a C program written to 
>find and replace the compiled-in name string in the following binary programs.
>
>		 /bin/{mail*,rmail*,uucp*,uulog*,uux*}

If you opt for this solution (I've done it myself), be sure
that you use a machine name THE SAME LENGTH OR SHORTER than
the compiled-in name.  (I.e., it must be a null-terminated
string and must not overwrite the next string beyond it.)

jeq