Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2020-06-26 10:53:23 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-06-26 10:53:23 +0300
commit871f95cbf3afd86b4a197a8466b8e5d387284972 (patch)
tree4d3b47a3dc55729744f2a7d08176c51a160aef3b /include/functions
parentf00637d43348b701705244d978926138e5da7d42 (diff)
Use BSD style format when calling stat
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions b/include/functions
index 8d5a5ef8..4ff5b43a 100644
--- a/include/functions
+++ b/include/functions
@@ -1290,7 +1290,8 @@
if [ -n "${STATBINARY}" ]; then
case ${OS} in
- *BSD)
+ *BSD | "macOS")
+ # BSD and macOS have no --format, only short notation
DATA=$(${STATBINARY} -f "%OLp" ${CHECKFILE})
;;
*)