[hackers] [PATCH 2/2] scripts: Fix non-portable find -perm /mode

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Sun, 29 Oct 2023 12:28:37 +0100

---
 scripts/mkproto | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/mkproto b/scripts/mkproto
index ab0ade4..192fe56 100755
--- a/scripts/mkproto
+++ b/scripts/mkproto
_AT_@ -14,7 +14,7 @@ trap "rm -f scripts/proto" EXIT INT QUIT TERM
 
 (set -e
 echo d $prefix/bin $prefix/bin 755
-find . ! -name . -prune -type f -perm /111 |
+find . ! -name . -prune -type f \( -perm -u+x -o -perm -g+x -o -perm o+x \) |
 sed "s_AT_.*_AT_c & $prefix/bin/& 755@"
 
 echo d $manprefix/man1 $manprefix/man1 755
-- 
2.42.0
Received on Sun Oct 29 2023 - 12:28:37 CET

This archive was generated by hypermail 2.3.0 : Sun Oct 29 2023 - 12:36:33 CET