From pa.dec.com!decwrl!uunet!sparky!kent Sat Mar 2 14:16:10 PST 1991 Article: 2066 of comp.sources.misc Path: pa.dec.com!decwrl!uunet!sparky!kent From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker) Newsgroups: comp.sources.misc Subject: v17i011: ECU 3 - Patch06 Message-ID: <1991Feb22.014653.14733@sparky.IMD.Sterling.COM> Date: 22 Feb 91 01:46:53 GMT Sender: kent@sparky.IMD.Sterling.COM (Kent Landfield) Organization: Sterling Software, IMD Lines: 89 Approved: kent@sparky.imd.sterling.com X-Checksum-Snefru: 7b5d09f2 db52c987 850d46a1 b57a7c42 Submitted-by: Warren Tucker Posting-number: Volume 17, Issue 11 Archive-name: ecu3/patch06 Patch-To: ecu3: Volume 16, Issue 25-59 This patch (#6) fixes a bug in patch 5. Things seem stable now. I was going to wait for possible feedback from ISC porters, but several folks have had this problem (no doubt since ECU won't work without this patch). This patch was also sent to comp.sources.bugs on 13 February, but patchlevel.h was not updated. You may get 1 hunk rejected if you have already applied the patch. You need to remake/reinstall both ecu and ecuungetty. This man's hat sits on a quick-thinking head: > Organization: DEMOS, Moscow, USSR > Date: Wed, 13 Feb 91 02:15:23 +0300 (MSK) > From: emory!hq.demos.su!ache (Andrew A. Chernov, canton Uri's citizen) > Subject: ECU 3.05 utmpstat > > Hi, Warren, bad news. > I just applied PATCH 5 for ECU, everything appears OK, but > 'utmpstat' not work at all, I look in... > IMHO it seems, like two strings are misplaced... > (US_LOGIN and US_DIALOUT) > I fix it, and ECU works correctly. > Good Luck. #!/bin/sh # This is ecu3/patch06, a shell archive (shar 3.46) # made 02/21/1991 17:35 UTC by wht@n4hgf # Source directory /t # # existing files WILL be overwritten # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 887 -rw-r--r-- PATCH06 # # ============= PATCH06 ============== echo 'x - extracting PATCH06 (Text)' sed 's/^X//' << 'SHAR_EOF' > 'PATCH06' && X*** utmpstat.c.b Mon Feb 11 17:57:01 1991 X--- utmpstat.c Wed Feb 13 02:00:02 1991 X*************** X*** 107,115 **** X idcopy[sizeof(idcopy) - 1] = 0; X X if(!strcmp(namecopy,"LOGIN")) X- status = US_DIALOUT; X- else if(!strcmp(namecopy,"DIALOUT")) X status = US_LOGIN; X else if((!strcmp(namecopy,"uugetty") || !strcmp(namecopy,"getty"))) X { X if(itmp = line_locked(line)) X--- 107,115 ---- X idcopy[sizeof(idcopy) - 1] = 0; X X if(!strcmp(namecopy,"LOGIN")) X status = US_LOGIN; X+ else if(!strcmp(namecopy,"DIALOUT")) X+ status = US_DIALOUT; X else if((!strcmp(namecopy,"uugetty") || !strcmp(namecopy,"getty"))) X { X if(itmp = line_locked(line)) X*** /u4/src/ecu3.05/patchlevel.h Thu Feb 14 18:44:04 1991 X--- patchlevel.h Wed Feb 13 12:25:20 1991 X*************** X*** 1,1 X! #define PATCHLEVEL 5 X X--- 1,1 ----- X! #define PATCHLEVEL 6 SHAR_EOF chmod 0644 PATCH06 || echo 'restore of PATCH06 failed' Wc_c="`wc -c < 'PATCH06'`" test 887 -eq "$Wc_c" || echo 'PATCH06: original size 887, current size' "$Wc_c" exit 0 exit 0 # Just in case... -- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM Sterling Software, IMD UUCP: uunet!sparky!kent Phone: (402) 291-8300 FAX: (402) 291-4362 Please send comp.sources.misc-related mail to kent@uunet.uu.net.