From d83a711a8b35a89f2ee27ea45f0f46b0ab16a54f Mon Sep 17 00:00:00 2001 From: Wai Yee Wong Date: Mon, 3 Feb 2020 16:05:50 -0500 Subject: [PATCH] Simplify the conditional statement to identify files which do NOT have read access for all. --- builddep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builddep.sh b/builddep.sh index cb8878688..acb4a8fc2 100755 --- a/builddep.sh +++ b/builddep.sh @@ -191,7 +191,7 @@ if [[ ${CHECK} -eq 1 ]]; then done # Find files that have read permission missing for "all" - MISSING_PERMISSION=`find $GSA/* -type f -not -perm 644 -a -type f -not -perm 645 -a -type f -not -perm 646 -a -type f -not -perm 647 -a -type f -not -perm 664 -a -type f -not -perm 665 -a -type f -not -perm 666 -a -type f -not -perm 667` + MISSING_PERMISSION=`find $GSA/* -type f -not -perm -444` for file in $MISSING_PERMISSION; do echo "Verify permission for file: " echo " " $(ls -l $file)