Received: (qmail 4260 invoked by uid 2012); 13 Jun 1998 03:41:18 -0000 Message-Id: <19980613034118.4259.qmail@hyperreal.org> Date: 13 Jun 1998 03:41:18 -0000 From: Bill Houle Reply-To: bhoule@sandiegoca.ncr.com To: apbugs@hyperreal.org Subject: APACI/--shadow use of GNUTRIPLE broken with 'sed' call X-Send-Pr-Version: 3.2 >Number: 2435 >Category: os-other >Synopsis: APACI/--shadow use of GNUTRIPLE broken with 'sed' call >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Jun 12 20:50:00 PDT 1998 >Last-Modified: Sun Aug 2 04:22:17 PDT 1998 >Originator: bhoule@sandiegoca.ncr.com >Organization: >Release: 1.3.1 >Environment: I filed this under 'os-other' because I can get it to fail on multiple UNIX OSs: Sun: SunOS sparc 4.1C 4.1.3 sun4 NCR SysV: UNIX_SV si699 4.0 3.0 4850 386/486/MC >Description: Trying to create shadow trees on SunOS and NCR SysV, the GNUTRIPLE always came out null. I traced it to 'sed's inability to cope with the single line input (the non-newline terminated result from awk) on the sed substitute command. I'd blame it on the OS if it weren't for the fact that this was 2 unrelated systems. >How-To-Repeat: The following fails on both systems: $ src/helpers/GuessOS|nawk '{printf("%s",$1);}' | sed -ne '1p' $ src/helpers/GuessOS|nawk '{printf("%s\n",$1);}' | sed -ne '1p' sun4-sun-sunos4 $ >Fix: I just removed the sed command from the GNUTRIPLE call, but that may not work for other GuessOS results. A better fix may be to swap the order of the sed and the awk/nawk: $ src/helpers/GuessOS| sed -ne '1p'|nawk '{printf("%s",$1);}' sun4-sun-sunos4$ $ >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: rse State-Changed-When: Sat Jun 13 04:26:17 PDT 1998 State-Changed-Why: Thanks for the report. I've now swaped awk and sed in the command as you suggested for Apache 1.3.1. State-Changed-From-To: closed-open State-Changed-By: lars State-Changed-When: Thu Jul 30 12:44:04 PDT 1998 State-Changed-Why: Adding info from PR#2740: From: Bill Houle The 1.3.0 bugfix I supplied was only applied to one instance of configure's GuessOS|sed|awk, though there are 2 instances within the --shadow section. The other line in the 1.3.1 release needs to be fixed also. Release-Changed-From-To: 1.3.0-1.3.1 Release-Changed-By: lars Release-Changed-When: Thu Jul 30 12:44:04 PDT 1998 State-Changed-From-To: open-closed State-Changed-By: rse State-Changed-When: Sun Aug 2 04:22:16 PDT 1998 State-Changed-Why: Both entries in configure are now fixed for Apache 1.3.2. At both positions inside the script SED and AWK are not swapped. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]