mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/seth/config-reader-musl-support'
* origin/topic/seth/config-reader-musl-support: Fix config reader regular expression for MUSL.
This commit is contained in:
commit
123e45ca4e
3 changed files with 3 additions and 1 deletions
|
@ -182,7 +182,7 @@ bool Config::DoUpdate()
|
|||
}
|
||||
|
||||
regex_t re;
|
||||
if ( regcomp(&re, "^([^[:blank:]]+)[[:blank:]]+(.*[^[:blank:]])?[[:blank:]]*$", REG_EXTENDED) )
|
||||
if ( regcomp(&re, "^([^[:blank:]]+)[[:blank:]]+([^[:blank:]](.*[^[:blank:]])?)?[[:blank:]]*$", REG_EXTENDED) )
|
||||
{
|
||||
Error(Fmt("Failed to compile regex."));
|
||||
return true;
|
||||
|
|
|
@ -26,3 +26,4 @@ test_set, {
|
|||
test_set, {
|
||||
-
|
||||
}
|
||||
teststring, abc
|
||||
|
|
|
@ -24,6 +24,7 @@ test_vector 1 2 3 4 5 6
|
|||
test_set (empty)
|
||||
test_set EMPTY
|
||||
test_set -
|
||||
teststring abc
|
||||
@TEST-END-FILE
|
||||
|
||||
@load base/protocols/ssh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue