patch-2.0.36 linux/fs/vfat/namei.c
Next file: linux/include/asm-alpha/lca.h
Previous file: linux/fs/super.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sun Nov 15 10:33:15 1998
- Orig file:
v2.0.35/linux/fs/vfat/namei.c
- Orig date:
Mon Jul 13 13:46:39 1998
diff -u --recursive --new-file v2.0.35/linux/fs/vfat/namei.c linux/fs/vfat/namei.c
@@ -10,7 +10,6 @@
* the problem, send a script that demonstrates it.
*/
-#include <linux/config.h>
#define __NO_VERSION__
#include <linux/module.h>
@@ -832,6 +831,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;
@@ -967,7 +969,6 @@
sinfo_out->shortname_offset = offset - sizeof(struct msdos_dir_slot);
sinfo_out->longname_offset = offset - sizeof(struct msdos_dir_slot) * slots;
res = 0;
- return 0;
} else {
res = -ENOENT;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov