aboutsummaryrefslogtreecommitdiffstats
path: root/init/initramfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/initramfs.c')
-rw-r--r--init/initramfs.c2
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);