[Buildroot] [git commit master 1/1] fs/squashfs: fix image file permissions

Peter Korsgaard jacmet at sunsite.dk
Tue Aug 31 21:14:47 UTC 2010


commit: http://git.buildroot.net/buildroot/commit/?id=3975e30b991d42d4cc153b738742f962d8fda757
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Set image file permissions to 0644 like it was before the fs rework,
instead of the rather unhelpful 0700 (E.G. when image is used for tftp).

Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
 fs/squashfs/squashfs.mk |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk
index 6117de6..aae22b6 100644
--- a/fs/squashfs/squashfs.mk
+++ b/fs/squashfs/squashfs.mk
@@ -19,7 +19,8 @@ endif
 
 define ROOTFS_SQUASHFS_CMD
 	$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend \
-		$(ROOTFS_SQUASHFS_ARGS)
+		$(ROOTFS_SQUASHFS_ARGS) && \
+	chmod 0644 $$@
 endef
 
 $(eval $(call ROOTFS_TARGET,squashfs))
-- 
1.7.1




More information about the buildroot mailing list