tools/gencromfs.c: Was duplicating all mode bits in source directory in CROMFS directory. Some make no sense. In particular, all write-able bits are cleard unconditionally. Executable bits are still copying because there is really no way for the tool to know if the file is executable or not.

This commit is contained in:
Gregory Nutt
2018-03-24 15:05:22 -06:00
parent 67e0603b5a
commit db3b507a41
2 changed files with 4 additions and 17 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ struct cromfs_volume_s
struct cromfs_node_s
{
uint16_t cn_mode; /* File type, attributes, and access mode bits */
uint16_t cn_pad; /* Not used */
uint16_t cn_pad; /* Not used */
uint32_t cn_name; /* Offset from the beginning of the volume header to the
* node name string. NUL-terminated. */
uint32_t cn_size; /* Size of the uncompressed data (in bytes) */