]> bbs.cooldavid.org Git - net-next-2.6.git/commit - init/initramfs.c
[PATCH] initramfs overwrite fix
authorH. Peter Anvin <hpa@zytor.com>
Mon, 26 Jun 2006 07:28:02 +0000 (00:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:40 +0000 (09:58 -0700)
commit2139a7fbf3effd8cad505871e3a3c308780ada32
tree7697089be2d16bab7b59d9f261bad857649a0a10
parent05381954243de2348def8e338ca23fb40a0a721d
[PATCH] initramfs overwrite fix

This patch ensures that initramfs overwrites work correctly, even when dealing
with device nodes of different types.  Furthermore, when replacing a file
which already exists, we must make very certain that we truncate the existing
file.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Michael Neuling <mikey@neuling.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
init/initramfs.c