summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-22 23:10:57 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-22 23:10:57 +0000
commitf6b470be4fdfaf8cdd5093d649e11e57d9af0fe3 (patch)
tree29a2541faee2366ccf77bb3d279f81a5f2877473 /include
parent15b54dd2c0764032b4a1ac4ad3964bbd2b159fc8 (diff)
fix rootfs preparation with rootfs containing files with whitespaces in the filename (based on patch from #6551)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19282 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/image.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/image.mk b/include/image.mk
index ac8093704..990ce8e40 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -126,9 +126,9 @@ endif
define Image/mkfs/prepare/default
- - find $(TARGET_DIR) -type f -not -perm +0100 -not -name 'ssh_host*' | $(XARGS) chmod 0644
- - find $(TARGET_DIR) -type f -perm +0100 | $(XARGS) chmod 0755
- - find $(TARGET_DIR) -type d | $(XARGS) chmod 0755
+ - $(FIND) $(TARGET_DIR) -type f -not -perm +0100 -not -name 'ssh_host*' -print0 | $(XARGS) -0 chmod 0644
+ - $(FIND) $(TARGET_DIR) -type f -perm +0100 -print0 | $(XARGS) -0 chmod 0755
+ - $(FIND) $(TARGET_DIR) -type d -print0 | $(XARGS) -0 chmod 0755
$(INSTALL_DIR) $(TARGET_DIR)/tmp
chmod 0777 $(TARGET_DIR)/tmp
endef