Re: Strange cdfs directory...

Gordon Chaffee (chaffee@cs.berkeley.edu)
Fri, 11 Sep 1998 22:05:27 -0700


Kalle Andersson writes:
> I just found something I believe shouldn't be there..
>
> On some cds I can to this:
>
> mount /cdrom (This is a homeburnt cd)
> Logs say: ISO 9660 Extensions: Microsoft Joliet Level 1
>
> $ cd /cdrom/
> $ cd ...
> $ pwd
> /cdrom/...

Urggh, you'd think I'd have learned to check for the ... problem by now.
Here is a fix. Gotta write more of that isofs test suite. Okay, this
fixes that particular problem. It looks like there is still another
separate problem where the .. directory is not listed with an ls -a.

- Gordon

--- linux/fs/isofs/namei.c~ Sat Sep 5 01:05:41 1998
+++ linux/fs/isofs/namei.c Fri Sep 11 22:01:49 1998
@@ -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);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html