[net.bugs.uucp] Bug in HoneyDanBer CALLBACK=yes option + Fix

greg@ncr-sd.UUCP (Greg Noel) (11/07/86)

Problem:  HoneyDanBer UUCP CALLBACK=yes option doesn't set poll file correctly

Description:
	To make the call back option more reliable, HoneyDanBer UUCP plants a
	poll file so that if the immediate call back fails, it will call again
	as a part of the regular polling cycle run from uusched.  However, when
	it creates poll files, it creates them in the SPOOL directory instead
	of the subdirectory for the particular remote, thus making the poll
	file useless.

Repeat-by:
	In the Permissions file, set CALLBACK=yes for some site(s).  Observe
	that whenever the remote calls up, zero-length poll files show up in
	SPOOL (/usr/spool/uucp) instead of the particular subdirectory for
	that remote (i.e., /usr/spool/uucp/remote).

Fix:
*** cico.OLD	Thu Nov  6 14:44:08 1986
--- cico.c	Thu Nov  6 14:44:56 1986
***************
*** 301,306
  			 * set up for call back
  			 */
  			systat(Rmtname, SS_CALLBACK, "CALL BACK", Retrytime);
  			gename(CMDPRE, Rmtname, 'C', file);
  			(void) close(creat(file, CFILEMODE));
  			xuucico(Rmtname);

--- 301,307 -----
  			 * set up for call back
  			 */
  			systat(Rmtname, SS_CALLBACK, "CALL BACK", Retrytime);
+ 			chremdir(Rmtname);
  			gename(CMDPRE, Rmtname, 'C', file);
  			(void) close(creat(file, CFILEMODE));
  			xuucico(Rmtname);
-- 
-- Greg Noel, NCR Rancho Bernardo    Greg@ncr-sd.UUCP or Greg@nosc.ARPA