1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/mptcpd/0004-scripts-use-short-stat-options.patch
2025-02-05 12:02:33 +01:00

32 lines
943 B
Diff

From 4ead8e2461ba0b86ff699149b624b35a46919f07 Mon Sep 17 00:00:00 2001
From: "Matthieu Baerts (NGI0)" <matttbe@kernel.org>
Date: Wed, 20 Nov 2024 15:20:28 +0100
Subject: [PATCH 4/4] 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) <matttbe@kernel.org>
---
scripts/check-permissions | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/check-permissions b/scripts/check-permissions
index 879661b..a8dfedb 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/'`
--
2.45.2