allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc) (12/08/89)
Posting-number: Volume 9, Issue 56 Submitted-by: wht%n4hgf@gatech.edu (Warren Tucker) Archive-name: siotools/patch01 #!/bin/sh # This is siotools.p1, a shell archive (shar 3.04) # made 12/05/1989 21:00 UTC by gatech!kd4nc!n4hgf!wht (wht%n4hgf@gatech.edu) # Source directory /u4/src/uusnap/x # # siotools v09i044/v09i45 Patch 1 # This patch fixes a bug where uusnap is running and a new UUCP # connection is established, the display is improperly updated. # # Just unshar in the siotools source directory and type 'sh PATCH.1' # # This shar contains: # PATCH.1 # touch 2>&1 | fgrep '[-amc]' > /tmp/s3_touch$$ if [ -s /tmp/s3_touch$$ ] then TOUCH=can else TOUCH=cannot fi rm -f /tmp/s3_touch$$ echo "x - extracting PATCH.1 (Text)" sed 's/^X//' << 'SHAR_EOF' > PATCH.1 && X: X#------------------------------------------------------------------- X# siotools v09i044/v09i45 Patch 1 X# This patch fixes a bug where uusnap is running and a new UUCP X# connection is established, the display is improperly updated. X#------------------------------------------------------------------- X#+:EDITS: X#:12-05-1989-05:58-wht-creation X Xsed -e 's/^P//' << DIFF_EOF | patch XP*** uusnap160.c Mon Dec 4 18:28:00 1989 XP--- uusnap.c Tue Dec 5 05:48:15 1989 XP*************** XP*** 1,5 XP! /* CHK=0xB1F9 */ XP! char *revision = "1.60"; XP /*+------------------------------------------------------------------------- XP uusnap.c - display UUCP communications status for HDB systems XP ...gatech!kd4nc!n4hgf!wht XP XP--- 1,5 ----- XP! /* CHK=0x5B7C */ XP! char *revision = "1.61"; XP /*+------------------------------------------------------------------------- XP uusnap.c - display UUCP communications status for HDB systems XP ...gatech!kd4nc!n4hgf!wht XP*************** XP*** 508,513 XP status = SS_DEVICE_FAILED; XP XP move(y,0); XP utoda(s32,2,sysnum); XP addstr(s32); XP addch(' '); XP XP--- 508,514 ----- XP status = SS_DEVICE_FAILED; XP XP move(y,0); XP+ clrtoeol(); XP utoda(s32,2,sysnum); XP addstr(s32); XP addch(' '); XP*************** XP*** 902,907 XP display_status(systems,sysname,display_delta_y + FIRSTSYS_Y,linebuf); XP display_delta_y++; XP } XP display_delta_y++; XP move(display_delta_y + FIRSTSYS_Y,0); XP addstr("UUCP connections active: "); XP XP--- 903,910 ----- XP display_status(systems,sysname,display_delta_y + FIRSTSYS_Y,linebuf); XP display_delta_y++; XP } XP+ move(display_delta_y + FIRSTSYS_Y,0); XP+ clrtoeol(); XP display_delta_y++; XP move(display_delta_y + FIRSTSYS_Y,0); XP addstr("UUCP connections active: "); XP*************** XP*** 940,945 XP switch(cmd &= 0x7f) XP { XP case 'q': XP bye(0); XP case 'd': XP detail(); XP XP--- 943,949 ----- XP switch(cmd &= 0x7f) XP { XP case 'q': XP+ case 0x1B: XP bye(0); XP case 'd': XP detail(); XDIFF_EOF Xexit 0 SHAR_EOF chmod 0755 PATCH.1 || echo "restore of PATCH.1 fails" if [ $TOUCH = can ] then touch -m 1205155889 PATCH.1 fi exit 0