Commit 33644c5e authored by Jason Gunthorpe's avatar Jason Gunthorpe Committed by Linus Torvalds

[PATCH] Fix typo causing bad mode of /initrd.image

I noticed that after boot with an initrd in 2.6.16 the rootfs had:

--w-r-xr-T    1 root     root      6241141 Jan  1  1970 initrd.image

Which is caused by a small typo:
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8f3b50fc
...@@ -519,7 +519,7 @@ void __init populate_rootfs(void) ...@@ -519,7 +519,7 @@ void __init populate_rootfs(void)
return; return;
} }
printk("it isn't (%s); looks like an initrd\n", err); printk("it isn't (%s); looks like an initrd\n", err);
fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 700); fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 0700);
if (fd >= 0) { if (fd >= 0) {
sys_write(fd, (char *)initrd_start, sys_write(fd, (char *)initrd_start,
initrd_end - initrd_start); initrd_end - initrd_start);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment