Mainline kernel already includes Mark Huang's fix. No need for the
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 29 Jun 2007 00:22:03 +0000 (00:22 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 29 Jun 2007 00:22:03 +0000 (00:22 +0000)
sys_unlink(collected) call, as the previous call to clean_path(collected,mode)
takes care of doing this.

init/initramfs.c

index e626a75..4fa0f79 100644 (file)
@@ -290,7 +290,6 @@ static int __init do_name(void)
                sys_chmod(collected, mode);
        } else if (S_ISBLK(mode) || S_ISCHR(mode) ||
                   S_ISFIFO(mode) || S_ISSOCK(mode)) {
-               sys_unlink(collected);
                if (maybe_link() == 0) {
                        sys_mknod(collected, mode, rdev);
                        sys_chown(collected, uid, gid);