patch-2.1.128 linux/arch/sparc64/kernel/binfmt_aout32.c

Next file: linux/drivers/block/acsi.c
Previous file: linux/arch/mips/kernel/irixelf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.127/linux/arch/sparc64/kernel/binfmt_aout32.c linux/arch/sparc64/kernel/binfmt_aout32.c
@@ -106,7 +106,7 @@
 #else
 	corefile[4] = '\0';
 #endif
-	dentry = open_namei(corefile,O_CREAT | 2 | O_TRUNC, 0600);
+	dentry = open_namei(corefile,O_CREAT | 2 | O_TRUNC | O_NOFOLLOW, 0600);
 	if (IS_ERR(dentry)) {
 		dentry = NULL;
 		goto end_coredump;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov