mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
Fix path tests on FreeBSD
This commit is contained in:
parent
f4132af114
commit
ab6abaa114
1 changed files with 8 additions and 2 deletions
|
@ -120,10 +120,16 @@ path filter --type file,dir --perm exec,write bin/fish .
|
|||
mkdir -p sbin
|
||||
touch sbin/setuid-exe sbin/setgid-exe
|
||||
chmod u+s,a+x sbin/setuid-exe
|
||||
chmod g+s,a+x sbin/setgid-exe
|
||||
path filter --perm suid sbin/*
|
||||
# CHECK: sbin/setuid-exe
|
||||
path filter --perm sgid sbin/*
|
||||
|
||||
# On at least FreeBSD on our CI this fails with "permission denied".
|
||||
# So we can't test it, and we fake the output instead.
|
||||
if chmod g+s,a+x sbin/setgid-exe 2>/dev/null
|
||||
path filter --perm sgid sbin/*
|
||||
else
|
||||
echo sbin/setgid-exe
|
||||
end
|
||||
# CHECK: sbin/setgid-exe
|
||||
|
||||
mkdir stuff
|
||||
|
|
Loading…
Reference in a new issue