[Buildroot] [git commit] build: use find -perm /mode, instead of -perm +mode STRIP_FIND_CMD

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Jul 27 21:38:17 UTC 2013

commit: http://git.buildroot.net/buildroot/commit/?id=88418bd2de3e2161fc5085a68c5e558a95644a07
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The -perm +mode is deprecated, and sometimes yields suprising results.
It can be confused with permission in symbolic mode, for example '+u+g',
as POSIX spec suggests.

Signed-off-by: Tzu-Jung Lee <tjlee at ambarella.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index f477124..0cd7f55 100644
--- a/Makefile
+++ b/Makefile
@@ -449,7 +449,7 @@ STRIP_FIND_CMD = find $(TARGET_DIR)
 ifneq (,$(call qstrip,$(BR2_STRIP_EXCLUDE_DIRS)))
 STRIP_FIND_CMD += \( $(call finddirclauses,$(TARGET_DIR),$(call qstrip,$(BR2_STRIP_EXCLUDE_DIRS))) \) -prune -o
-STRIP_FIND_CMD += -type f -perm +111
+STRIP_FIND_CMD += -type f -perm /111
 STRIP_FIND_CMD += -not \( $(call findfileclauses,libpthread*.so* $(call qstrip,$(BR2_STRIP_EXCLUDE_FILES))) \) -print

More information about the buildroot mailing list