]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Merge from NetBSD:
authortjr <tjr@FreeBSD.org>
Wed, 8 Sep 2004 11:25:41 +0000 (11:25 +0000)
committertjr <tjr@FreeBSD.org>
Wed, 8 Sep 2004 11:25:41 +0000 (11:25 +0000)
commiteba490783823f36f4f8ec62014ac22c7deae8fbd
tree4fb05fdd074a06c449c5b797950fa0b34c6d2440
parent1d085394336dc06a0fd195ff4225080701b6fa5f
Merge from NetBSD:
Fix a problem in previous: we can't blindly assume that we have
wincnt entries available at the offset the file has been found. If the dos
directory entry is not preceded by appropriate number of long name
entries (happens e.g. when the filesystem is corrupted, or when
the filename complies to DOS rules and doesn't use any long name entry),
we would overwrite random directory entries.

There are still some problems, the whole thing has to be revisited and solved
right.

Submitted by: Xin LI
sys/fs/msdosfs/msdosfs_lookup.c