diff options
author | Thomas Sjögren <konstruktoid@users.noreply.github.com> | 2021-11-08 15:29:38 +0300 |
---|---|---|
committer | Thomas Sjögren <konstruktoid@users.noreply.github.com> | 2021-11-08 15:29:51 +0300 |
commit | 3bfff0ca6297f202f196c672721d2c6f78df76df (patch) | |
tree | 3a21f3a279b69d273879a5a8be8c33e7d00c0b79 /include | |
parent | c105f97efeb7fc55dc62510003ecac9771b885b8 (diff) |
present expected permission value in octal
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/functions | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/functions b/include/functions index 6c4d76c7..0ff661cf 100644 --- a/include/functions +++ b/include/functions @@ -1320,9 +1320,8 @@ CHECK_PERMISSION=$(echo "${CHECK_PERMISSION}" | ${AWKBINARY} '{printf "%03d",$1}') # First try stat command - LogText "Test: checking if file ${CHECKFILE} has the permissions set to ${CHECK_PERMISSION} or more restrictive" + LogText "Test: checking if file ${CHECKFILE} has the permissions set to ${CHECK_PERMISSION} (${CHECKPERMISSION_FULL}) or more restrictive" if [ -n "${STATBINARY}" ]; then - case ${OS} in *BSD | "macOS") # BSD and macOS have no --format, only short notation @@ -1388,7 +1387,7 @@ fi done - LogText "Outcome: permissions of file ${CHECKFILE} are not matching expected value (${DATA} != ${CHECKPERMISSION_FULL})" + LogText "Outcome: permissions of file ${CHECKFILE} are not matching expected value (${DATA} != ${CHECK_PERMISSION})" # No match, return exit code 1 return 1 fi |