>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
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.0
>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:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]