www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Houle <bho...@sandiegoca.ncr.com>
Subject os-other/2435: APACI/--shadow use of GNUTRIPLE broken with 'sed' call
Date Sat, 13 Jun 1998 03:41:18 GMT

>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:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Jun 12 20:50:00 PDT 1998
>Originator:     bhoule@sandiegoca.ncr.com
>Release:        1.3.0
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
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.
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'
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);}'
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

View raw message