summaryrefslogtreecommitdiff
path: root/mkfs.ubifs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-06-05 12:42:22 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-06-05 12:42:22 +0300
commit74054e88f39d81188f6a2d31a3b0201c6f47582f (patch)
tree5fbf77dbec451ae4adc891160d3cb12a848da332 /mkfs.ubifs
parente783e75e09b4a0a519665afd7bdeaf2985e7a09c (diff)
mkfs.ubifs: fix brown paper-bag bug
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'mkfs.ubifs')
-rw-r--r--mkfs.ubifs/mkfs.ubifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
index 9ecf82b..234a512 100644
--- a/mkfs.ubifs/mkfs.ubifs.c
+++ b/mkfs.ubifs/mkfs.ubifs.c
@@ -1640,7 +1640,7 @@ static int write_data(void)
root_st.st_atime = root_st.st_ctime = root_st.st_mtime;
}
root_st.st_uid = root_st.st_gid = 0;
- root_st.st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
+ root_st.st_mode = S_IFDIR | S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
head_flags = 0;
err = add_directory(root, UBIFS_ROOT_INO, &root_st, !root);