svn commit: r333611 - stable/10/sys/fs/msdosfs
Pedro F. Giffuni
pfg at FreeBSD.org
Mon May 14 19:21:58 UTC 2018
Author: pfg
Date: Mon May 14 19:21:57 2018
New Revision: 333611
URL: https://svnweb.freebsd.org/changeset/base/333611
Log:
MFC r333239:
msdosfs: long names of files are created incorrectly.
This fixes a regression that happened in r120492 (2003) where libkiconv
was introduced and we went from checking unlen to checking for '\0'.
PR: 111843
Patch by: Damjan Jovanovic
Modified:
stable/10/sys/fs/msdosfs/msdosfs_conv.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/fs/msdosfs/msdosfs_conv.c
==============================================================================
--- stable/10/sys/fs/msdosfs/msdosfs_conv.c Mon May 14 19:20:37 2018 (r333610)
+++ stable/10/sys/fs/msdosfs/msdosfs_conv.c Mon May 14 19:21:57 2018 (r333611)
@@ -581,7 +581,7 @@ unix2winfn(un, unlen, wep, cnt, chksum, pmp)
if (!code)
end = WIN_LAST;
}
- if (*un == '\0')
+ if (!unlen)
end = WIN_LAST;
wep->weCnt |= end;
return !end;
More information about the svn-src-stable
mailing list