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
MFC after:	1 week
This commit is contained in:
Pedro F. Giffuni 2018-05-04 03:44:12 +00:00
parent 37394a5d7e
commit c85866888d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333239

View File

@ -570,7 +570,7 @@ unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt,
if (!code)
end = WIN_LAST;
}
if (*un == '\0')
if (!unlen)
end = WIN_LAST;
wep->weCnt |= end;
return !end;