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

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

diff -u --recursive --new-file v1.3.8/linux/fs/isofs/namei.c linux/fs/isofs/namei.c
@@ -178,8 +178,18 @@
 		      dlen--;
 		  }
 		}
-		match = isofs_match(namelen,name,dpnt,dlen);
-		if (cpnt) {
+		/*
+		 * 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' )
+		{
+			match = isofs_match(namelen,name,dpnt,dlen);
+		}
+
+		if (cpnt)
+		{
 			kfree(cpnt);
 			cpnt = NULL;
 		}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this