[Bug 111843] [msdosfs] Long Names of files are incorrectly created on msdosfs

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 2 03:59:10 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=111843

--- Comment #6 from Damjan Jovanovic <damjan.jov at gmail.com> ---
That wasn't the commit in which NetBSD first fixed this bug. Their code was
correct from the start - the 1995 commit that added long filenames uses
decrementing unlen to detect end of filename instead of equality with '\0':

https://github.com/NetBSD/src/commit/e0c5bef42599b40c241b8a09e6ac9c56b6246b3a

But yes, the new code in unix2winfn() in the commit you found would also fix
this bug, though yet another approach, that detects end of the filename by
comparing this LFN entry's offset into the full filename against its
space/dot-trimmed length.

What now?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list