GH-1041: Move compress_path to a bif that uses normalize_path

This commit is contained in:
Tim Wojtulewicz 2020-07-06 11:24:34 -07:00
parent 3d3d5e7eb4
commit 560ee0c05e
4 changed files with 22 additions and 39 deletions

View file

@ -0,0 +1,2 @@
../foo
../foo

View file

@ -0,0 +1,9 @@
#
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init()
{
print compress_path("./../foo");
print compress_path("././../foo");
}