mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix typo causing bad mode of /initrd.image
@ 2006-03-24  6:56 Jason Gunthorpe
  0 siblings, 0 replies; only message in thread
From: Jason Gunthorpe @ 2006-03-24  6:56 UTC (permalink / raw)
  To: linux-kernel

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:

diff --git a/init/initramfs.c b/init/initramfs.c
index 637344b..f6fcc60 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -518,7 +518,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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-24  6:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-24  6:56 [PATCH] Fix typo causing bad mode of /initrd.image Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome