diff options
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | 2006-03-26 04:37:38 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:56:58 -0500 |
commit | 33644c5e15917b36c26f0c30c48786c5e8e62be1 (patch) | |
tree | 6bbaea71295ce60eefca63df9f7d0f149101ceae | |
parent | 8f3b50fc72d538c79dd2c1f728f5e594a0192da2 (diff) |
[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | init/initramfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index 77b934cccefe..679d870d991b 100644 --- a/init/initramfs.c +++ b/init/initramfs.c | |||
@@ -519,7 +519,7 @@ void __init populate_rootfs(void) | |||
519 | return; | 519 | return; |
520 | } | 520 | } |
521 | printk("it isn't (%s); looks like an initrd\n", err); | 521 | printk("it isn't (%s); looks like an initrd\n", err); |
522 | fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 700); | 522 | fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 0700); |
523 | if (fd >= 0) { | 523 | if (fd >= 0) { |
524 | sys_write(fd, (char *)initrd_start, | 524 | sys_write(fd, (char *)initrd_start, |
525 | initrd_end - initrd_start); | 525 | initrd_end - initrd_start); |