summaryrefslogtreecommitdiff
path: root/sys/fs/initramfs.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-11 15:14:08 -0400
committerIan Moffett <ian@osmora.org>2025-07-11 15:14:08 -0400
commit77ab2cfae85638aa375c68546aa895af9e2c3fad (patch)
tree2f5868bfc26357106be9d5dd947e18059058a9ee /sys/fs/initramfs.c
parent76144f33cb68efe347a26384c1cf69ec8351fbb0 (diff)
kernel: initramfs: Set file mode to OMAR mode
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/fs/initramfs.c')
-rw-r--r--sys/fs/initramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/initramfs.c b/sys/fs/initramfs.c
index fc06d0a..beb2e84 100644
--- a/sys/fs/initramfs.c
+++ b/sys/fs/initramfs.c
@@ -144,7 +144,7 @@ initramfs_get_file(const char *path, struct initramfs_node *res)
p += hdr->namelen;
if (strcmp(namebuf, path) == 0) {
- node.mode = 0700;
+ node.mode = hdr->mode;
node.size = hdr->len;
node.data = (void *)p;
*res = node;