john@jwt.UUCP (John Temples) (01/05/91)
The Magpie chat program has a bug in which more than one user cannot enter a channel which does not have a password. I made the following patch to fix the bug. #!/bin/sh # This is a shell archive (shar 3.32) # made 01/05/1991 06:28 UTC by john@jwt # Source directory /usr2/john/chat # # existing files WILL be overwritten # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 356 -rw-r--r-- patch1 # if touch 2>&1 | fgrep 'amc' > /dev/null then TOUCH=touch else TOUCH=true fi # ============= patch1 ============== echo "x - extracting patch1 (Text)" sed 's/^X//' << 'SHAR_EOF' > patch1 && X*** dist/misc.c Fri Jan 4 23:18:32 1991 X--- misc.c Sat Jan 5 01:08:46 1991 X*************** X*** 295,300 X return; X } X } X } X } X endutent(); X X--- 295,305 ----- X return; X } X } X+ else { /* channel in use, no password */ X+ endwhoent(); X+ join(rec, newchan, FALSE); X+ return; X+ } X } X } X endutent(); SHAR_EOF $TOUCH -am 0105011391 patch1 && chmod 0644 patch1 || echo "restore of patch1 failed" set `wc -c patch1`;Wc_c=$1 if test "$Wc_c" != "356"; then echo original size 356, current size $Wc_c fi exit 0 -- John W. Temples -- john@jwt.UUCP (uunet!jwt!john)