Error in install script of ossec-hids-0.8-3 on SPARC Solaris 8. Installation
script fails.
Default Solaris grep does not support -E option, so script uses
/usr/xpg4/bin/grep.
All well and good.
But ossec-hids-0.8-3 checks:
install.sh, line 622:
echo $ANSWER |grep -E "^/[a-zA-Z0-9/-]{3,128}*$">/dev/null 2>&1
if [ $? = 0 ]; then
INSTALLDIR=$ANSWER;
WORKDIR=$ANSWER;
break;
fi
<cmd prompt> echo /var/ossec | /usr/xpg4/bin/grep -E "^/[a-zA-Z0-9/-]{3,128}*$"
<cmd prompt> # (returns command prompt)
<cmd prompt> echo $?
1
But GNU grep works (behaves?) under Solaris 8.
I _believe_ the issue is identified under 'man 5 regex':
The behavior of multiple adjacent duplication symbols ( *
and intervals) produces undefined results.
If I remove the asterisk '*' the command works as intended.
<cmd prompt> echo /var/ossec | /usr/xpg4/bin/grep -E "^/[a-zA-Z0-9/-]{3,128}$"
/var/ossec
# echo $?
0
-- Leslie Arvin
[EMAIL PROTECTED], Office: FREH G409, Phone: 765-496-3971
Network Systems Administrator, ITI-Unix Platforms
Purdue University, Information Technology at Purdue
--~--~---------~--~----~------------~-------~--~----~
-~----------~----~----~----~------~----~------~--~---