ZTS: chattr_003_neg: accept uutils ln's wording for EPERM The ln of Ubuntu 26.04 is uutils coreutils 0.10.0, which reports EPERM from link(2) as "Permission denied" (uutils/coreutils#15020, fixed after 0.12.0). The test's ln step expects "Operation not permitted", so it fails on every ubuntu26 run. Accept either message there. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Rick Galliher <kcid@kcid.io> Co-authored-by: Claude Mythos 5.2 <noreply@anthropic.com> Closes #19972
diff --git a/tests/zfs-tests/tests/functional/chattr/chattr_003_neg.ksh b/tests/zfs-tests/tests/functional/chattr/chattr_003_neg.ksh index 9e0b238..987799c 100755 --- a/tests/zfs-tests/tests/functional/chattr/chattr_003_neg.ksh +++ b/tests/zfs-tests/tests/functional/chattr/chattr_003_neg.ksh
@@ -75,7 +75,10 @@ log_mustnot_expect "Operation not permitted" mv $file $file.renamed log_must [ -e $file ] log_mustnot [ -e $file.renamed ] -log_mustnot_expect "Operation not permitted" ln $file $file.link +# uutils coreutils before 0.13 (the ln of Ubuntu 26.04) words EPERM as +# "Permission denied". +log_mustnot_expect "Operation not permitted\|Permission denied" \ + ln $file $file.link log_mustnot [ -e $file.link ] log_must mkdir $dir