Re: VFAT "..." directory?

Hiroshi Kawaguchi (hirosi-k@is.aist-nara.ac.jp)
Fri, 17 Jul 1998 00:02:25 +0900


From: forcer <forcer@mindless.com>
Subject: VFAT "..." directory?
Date: Tue, 14 Jul 1998 01:51:16 +0200

> forcer@preforcix:/mnt/winbase$ uname -a
> Linux preforcix 2.0.35 #2 Sat Jul 11 18:47:22 MET DST 1998 i586 unknown
> (actually, 2.0.35pre6)
> forcer@preforcix:/mnt/winbase$ mount | grep winbase
> /dev/hda1 on /mnt/winbase type vfat (rw)
> forcer@preforcix:/mnt/winbase$ cd ...
> forcer@preforcix:/mnt/winbase/...$ cd ...
> forcer@preforcix:/mnt/winbase/.../...$ cd ...
> forcer@preforcix:/mnt/winbase/.../.../...$
>
> Whereas, every "..." was the same directory.
> Is that wanted? A bug? A feature? :)

I made a small patch.
Could you apply this patch to 2.0.35 tree, please?

-- H.Kawaguchi (hirosi-k@is.aist-nara.ac.jp)

--- fs/vfat/namei.c-dist Wed Jun 3 22:17:49 1998
+++ fs/vfat/namei.c Thu Jul 16 23:44:01 1998
@@ -832,6 +832,9 @@
if ((vf->len != name_len + 1) || (vf->name[name_len] != '.')) {
return 0;
}
+ if (name_len == 2 && name[0] == '.' && name[1] == '.') {
+ return 0;
+ }
}

s1 = name; s2 = vf->name;

-
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.altern.org/andrebalsa/doc/lkml-faq.html