[comp.sources.bugs] Bug and fix for Unix X/Y/ZMODEM program.

kasukawa@titisa.UUCP (04/19/87)

 We have appriciated Chuck Forsberg's ZMODEM program, but found a bug
in XMODEM mode.  Rz can't receive binary file in XMODEM mode,even add
 -b option.  following is the diff for fix.

------------------------------------------------------------------------------
*** rz.c.o	Mon Apr 20 02:35:11 1987
--- rz.c	Mon Apr 20 02:37:16 1987
***************
*** 321,327 ****
  		}
  	} else {
  		Bytesleft = DEFBYTL; Filemode = 0; Modtime = 0L;
! 
  		strcpy(Pathname, *argp);
  		checkpath(Pathname);
  		fprintf(stderr, "\nrz: ready to receive %s\r\n", Pathname);
--- 321,327 ----
  		}
  	} else {
  		Bytesleft = DEFBYTL; Filemode = 0; Modtime = 0L;
! 		Thisbinary = Rxbinary || !Rxascii;
  		strcpy(Pathname, *argp);
  		checkpath(Pathname);
  		fprintf(stderr, "\nrz: ready to receive %s\r\n", Pathname);
-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           JUNET : kasukawa@titisa.is.titech.junet
            UUCP : {seismo,mcvax}!kddlab!titcca!titisa!kasukawa
           CSNET : kasukawa%titisa.is.titech.junet@utokyo-relay