[PATCH] Fix typo causing bad mode of /initrd.image
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Sun, 26 Mar 2006 09:37:38 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:56:58 +0000 (08:56 -0800)
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>
init/initramfs.c

index 77b934cccefe5526bff1a8234e8dd2fd6cd85dff..679d870d991b760438a95d133c9684b9f381eb0d 100644 (file)
@@ -519,7 +519,7 @@ void __init populate_rootfs(void)
                        return;
                }
                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) {
                        sys_write(fd, (char *)initrd_start,
                                        initrd_end - initrd_start);