[comp.sources.d] UUPC bugs.

jack@swlabs.UUCP (Jack Bonn) (12/12/87)

Has anyone had success getting the UUPC package working under DOS?  I
have built it and it works some of the time, but lately I have been
getting a "null pointer assignement" error.  I ran lint on the source
and got 10 pages of errors!  I might have to go through all of these
for a start but if someone else has found the problem, please let me
know by e-mail, since I don't have access to comp.sys.ibm.pc.

Thanks in advance.
-- 
Jack Bonn, <> Software Labs, Ltd, Box 451, Easton CT  06612
uunet!swlabs!jack

jesup@pawl22.pawl.rpi.edu (Randell E. Jesup) (12/13/87)

In article <1477@swlabs.UUCP> jack@swlabs.UUCP (Jack Bonn) writes:
>Has anyone had success getting the UUPC package working under DOS?  I
>have built it and it works some of the time, but lately I have been
>getting a "null pointer assignement" error.  I ran lint on the source
>and got 10 pages of errors!

I've got it up on my Amiga, and ran into many of the same problems.
Various problems include:
	Only working for specific configurations of the systems file,
	combined with specific ways of calling uupc.  The real reason here
	is some flawed logic in the state tables in dcp.c.  In particular,
	you shouldn't call sysend until the serial port has been opened.
	Once you do get it calling, you may find it ignores X.* files unless
	they are set up a certain way, and you never call more than one
	system per run.  It should be made to accept X.anything instead of
	X.specific_host_name.*.  Different UUCPs will send X.yoursite*, or
	X.theirsite*.
	Etc, etc.

However, for all it's flaws, it actually does work, suprisingly.  The
mailer is a bit confused, but it works.
     //	Randell Jesup			Lunge Software Development
    //	Dedicated Amiga Programmer	13 Frear Ave, Troy, NY 12180
 \\//	lunge!jesup@beowulf.UUCP	(518) 272-2942
  \/    (uunet!steinmetz!beowulf!lunge!jesup)

jack@swlabs.UUCP (Jack Bonn) (12/16/87)

In article <141@imagine.PAWL.RPI.EDU>, jesup@pawl22.pawl.rpi.edu (Randell E. Jesup) writes:
> I've got it up on my Amiga, and ran into many of the same problems.
> Various problems include:
>       .
>       .
>       .
> 	Once you do get it calling, you may find it ignores X.* files unless
> 	they are set up a certain way, and you never call more than one
> 	system per run.  It should be made to accept X.anything instead of
> 	X.specific_host_name.*.  Different UUCPs will send X.yoursite*, or
> 	X.theirsite*.
> 	Etc, etc.

I had fixed that one too.

When a file was sent over that contained work to do, UUPC assumed that
the file was called x_<sitename> where sitename is the site I was
calling.  But in my case it was actually called x_<mysite> so I mod'ed 
UUPC to allow x_<anything> to be taken as a command file.  Context diffs
follow:

Index: dcpsys.c
*** dcp/dcpsys.c	Fri Sep 11 10:22:11 1987
--- newsrc/dcpsys.c	Mon Dec 14 09:18:32 1987
***************
*** 700,703
  	while ((dp = readdir(dirp)) != (struct direct *)NULL) {
! 		printmsg( 4, "dscandir: file = %s cname = %s", dp->d_name, cname );
! 		if ( strncmp( cname, dp->d_name, len ) == SAME ) {
  			printmsg( 4, "dscandir: match!!" );

--- 700,703 -----
  	while ((dp = readdir(dirp)) != (struct direct *)NULL) {
! 		printmsg( 4, "dscandir: file = /%s/ cname = /%s/", dp->d_name, cname );
! 		if ( strncmp( "x_", dp->d_name, 2 ) == SAME ) {
  			printmsg( 4, "dscandir: match!!" );
***************

I also modified the makefile to work under MS make, since that was all that
I had.  Let me know if you want a copy.
-- 
Jack Bonn, <> Software Labs, Ltd, Box 451, Easton CT  06612
uunet!swlabs!jack