patch-2.3.99-pre4 linux/net/khttpd/security.c

Next file: linux/net/khttpd/sockets.c
Previous file: linux/net/ipx/af_spx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre3/linux/net/khttpd/security.c linux/net/khttpd/security.c
@@ -115,14 +115,12 @@
 
 	lock_kernel();
 		
-	filp = filp_open(Filename, 0, O_RDONLY, NULL);
+	filp = filp_open(Filename, O_RDONLY, 0);
 	
 	unlock_kernel();
 	
-	if ((IS_ERR(filp))||(filp==NULL)||(filp->f_dentry==NULL))
-	{
+	if (IS_ERR(filp))
 		return NULL;
-	}
 
 #ifndef BENCHMARK		
 	permission = filp->f_dentry->d_inode->i_mode;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)