patch-1.3.45 linux/fs/msdos/namei.c
Next file: linux/fs/namei.c
Previous file: linux/fs/msdos/buffer.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Sun Nov 26 11:13:00 1995
- Orig file:
v1.3.44/linux/fs/msdos/namei.c
- Orig date:
Sat Nov 11 17:41:34 1995
diff -u --recursive --new-file v1.3.44/linux/fs/msdos/namei.c linux/fs/msdos/namei.c
@@ -177,6 +177,12 @@
return -EACCES;
}
PRINTK (("msdos_lookup 5\n"));
+ if (!(*result)->i_sb ||
+ ((*result)->i_sb->s_magic != MSDOS_SUPER_MAGIC)) {
+ /* crossed a mount point into a non-msdos fs */
+ iput(dir);
+ return 0;
+ }
if (MSDOS_I(*result)->i_busy) { /* mkdir in progress */
iput(*result);
iput(dir);
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