From dac1f6835e1e730409a4062c6562ece32bddaee1 Mon Sep 17 00:00:00 2001 From: Micah Abbott Date: Fri, 12 Nov 2021 15:33:14 -0500 Subject: [PATCH] tests/files: split types into separate arguments The version of `find` on RHCOS does not accept a comma-separated list of file types to the `-type` argument. Splitting it into multiple args should allow the test to work with FCOS/RHCOS. --- tests/kola/files/file-directory-permissions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kola/files/file-directory-permissions b/tests/kola/files/file-directory-permissions index 452240dc32..f982e657d5 100755 --- a/tests/kola/files/file-directory-permissions +++ b/tests/kola/files/file-directory-permissions @@ -11,9 +11,9 @@ fatal() { exit 1 } -list="$(find /etc -type f,d -perm /022)" +list="$(find /etc -type f -type d -perm /022)" if [[ -n "${list}" ]]; then - find /etc -type f,d -perm /022 -print0 | xargs -0 ls -al + find /etc -type f -type d -perm /022 -print0 | xargs -0 ls -al fatal "found files or directories with 'g+w' or 'o+w' permission" fi ok "no files with 'g+w' or 'o+w' permission found in /etc"