From 9d8da3ee1ad6f31f0498b42ca58375a7ed612537 Mon Sep 17 00:00:00 2001 From: "Matthieu Baerts (NGI0)" Date: Wed, 20 Nov 2024 15:20:28 +0100 Subject: [PATCH] scripts: use short stat options Busybox's stat doesn't understand the long options: stat: unrecognized option: dereference But it does support '-L'. Signed-off-by: Matthieu Baerts (NGI0) --- scripts/check-permissions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-permissions b/scripts/check-permissions index 879661bf..a8dfedbd 100755 --- a/scripts/check-permissions +++ b/scripts/check-permissions @@ -19,7 +19,7 @@ exit_status=0 for p in $@; do # Access rights in human readable form (e.g. "drwxrwxr-x") - perms=`stat --dereference --format=%A $p` + perms=`stat -L -c %A $p` # The write mode for "others". other_write=`echo $perms | sed -e 's/.*\(.\).$/\1/'`