Skip to content

Commit

Permalink
Fix path escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hader committed Feb 16, 2024
1 parent 1d46fca commit d219ec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tests/regress/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ echo "Fail: $fail"
if [ "$fail" -eq 0 ] ; then
code=0
else
find "$logdir" -type f -name "*.error" -printf '%P\0' |
while read -rd $'\0' path; do
cat "$path"
for f in "$logdir"/*.error ; do
cat "$f"
echo
done
code=1
Expand Down
3 changes: 2 additions & 1 deletion tests/regress/run_test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ else
fi

if [ -d "$out_dir" ] ; then
log_file="$out_dir/$(echo "$test_file" | tr '/' '_')"
# replace _ with __ and / with _
log_file="$out_dir/_$(echo "${test_file//_/__}" | tr '/' '_')}"
fi

# Run the binary
Expand Down

0 comments on commit d219ec6

Please sign in to comment.