patch-2.1.122 linux/fs/isofs/namei.c

Next file: linux/fs/msdos/namei.c
Previous file: linux/fs/isofs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.121/linux/fs/isofs/namei.c linux/fs/isofs/namei.c
@@ -201,8 +201,8 @@
 		 * Skip hidden or associated files unless unhide is set 
 		 */
 		match = 0;
-		if(   !(de->flags[-dir->i_sb->u.isofs_sb.s_high_sierra] & 5)
-		   || dir->i_sb->u.isofs_sb.s_unhide == 'y' )
+		if ((!(de->flags[-dir->i_sb->u.isofs_sb.s_high_sierra] & 5)
+		    || dir->i_sb->u.isofs_sb.s_unhide == 'y') && dlen)
 		{
 			match = (isofs_cmp(dentry,dpnt,dlen) == 0);
 		}

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