patch-2.1.46 linux/fs/binfmt_elf.c
Next file: linux/fs/exec.c
Previous file: linux/fs/binfmt_aout.c
Back to the patch index
Back to the overall index
-  Lines: 19
-  Date:
Sat Jul 19 11:29:59 1997
-  Orig file: 
v2.1.45/linux/fs/binfmt_elf.c
-  Orig date: 
Thu Jul 17 10:06:06 1997
diff -u --recursive --new-file v2.1.45/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -1091,16 +1091,8 @@
 		goto end_coredump;
 	if (!inode->i_op || !inode->i_op->default_file_ops)
 		goto end_coredump;
-	file.f_mode = 3;
-	file.f_flags = 0;
-	file.f_count = 1;
-	file.f_dentry = dentry;
-	file.f_pos = 0;
-	file.f_reada = 0;
-	file.f_op = inode->i_op->default_file_ops;
-	if (file.f_op->open)
-		if (file.f_op->open(inode,&file))
-			goto end_coredump;
+	if (init_private_file(&file, dentry, 3))
+		goto end_coredump;
 	if (!file.f_op->write)
 		goto close_coredump;
 	has_dumped = 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov