Skip to content

Commit 8c2d1e7

Browse files
FGaspertoddr
authored andcommitted
fixup! Make t/op/magic.t pass on AlmaLinux 8’s kernel.
1 parent 4cae439 commit 8c2d1e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

t/op/magic.t

+10
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,16 @@ EOP
472472

473473
# Some kernels leave a trailing NUL on. Some add a bunch of spaces
474474
# after that NUL. We want neither.
475+
#
476+
# A selection of kernels/distros tested:
477+
#
478+
# 4.18.0-348.20.1.el8_5.x86_64 (AlmaLinux 8.5): NUL then spaces
479+
# 3.10.0-1160.62.1.el7.x86_64 (CentOS 7.9.2009): no NUL nor spaces
480+
# 2.6.32-954.3.5.lve1.4.87.el6.x86_64 (CloudLinux 6.10): ^^ ditto
481+
#
482+
# 5.13.0-1025-raspi (Ubuntu 21.10): NUL only
483+
# 5.10.103-v7+ (RaspiOS 10): NUL only
484+
#
475485
$got=~s/\0\s*\z//;
476486

477487
return $got;

0 commit comments

Comments
 (0)