From: Jason Gunthorpe Date: Sun, 26 Mar 2006 09:37:38 +0000 (-0800) Subject: [PATCH] Fix typo causing bad mode of /initrd.image X-Git-Tag: v2.6.17-rc1~618 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=33644c5e15917b36c26f0c30c48786c5e8e62be1;p=~shefty%2Frdma-dev.git [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 Signed-off-by: Linus Torvalds --- diff --git a/init/initramfs.c b/init/initramfs.c index 77b934cccef..679d870d991 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -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);