patch-2.1.80 linux/fs/fat/dir.c
Next file: linux/fs/fat/inode.c
Previous file: linux/fs/fat/cache.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Tue Jan 13 20:07:28 1998
- Orig file:
v2.1.79/linux/fs/fat/dir.c
- Orig date:
Mon Jan 12 22:09:17 1998
diff -u --recursive --new-file v2.1.79/linux/fs/fat/dir.c linux/fs/fat/dir.c
@@ -237,6 +237,7 @@
char bufname[14];
char *ptname = bufname;
int dotoffset = 0;
+ int was_long = is_long;
if (is_long) {
unsigned char sum;
@@ -247,6 +248,7 @@
if (sum != alias_checksum) {
PRINTK(("Checksums don't match %d != %d\n", sum, alias_checksum));
is_long = 0;
+ long_slots = 0;
}
if (utf8) {
long_len = utf8_wcstombs(longname, (__u16 *) unicode, sizeof(longname));
@@ -290,7 +292,7 @@
if (both)
bufname[i+dotoffset] = '\0';
spos = oldpos;
- if (is_long) {
+ if (was_long) {
spos = filp->f_pos - sizeof(struct msdos_dir_entry);
} else {
long_slots = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov