patch-2.3.22 linux/net/unix/af_unix.c
Next file: linux/net/x25/af_x25.c
Previous file: linux/net/sunrpc/xprt.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Tue Oct 12 10:05:53 1999
-  Orig file: 
v2.3.21/linux/net/unix/af_unix.c
-  Orig date: 
Mon Oct 11 15:38:15 1999
diff -u --recursive --new-file v2.3.21/linux/net/unix/af_unix.c linux/net/unix/af_unix.c
@@ -572,7 +572,7 @@
 
 		/* Do not believe to VFS, grab kernel lock */
 		lock_kernel();
-		dentry = open_namei(sunname->sun_path, 2, S_IFSOCK);
+		dentry = open_namei(sunname->sun_path, 2|O_NOFOLLOW, S_IFSOCK);
 		if (IS_ERR(dentry)) {
 			*error = PTR_ERR(dentry);
 			unlock_kernel();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)