Author: pfg Date: Mon May 14 19:20:37 2018 New Revision: 333610 URL: https://svnweb.freebsd.org/changeset/base/333610
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 Approved by: re (gjb) Modified: stable/11/sys/fs/msdosfs/msdosfs_conv.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/fs/msdosfs/msdosfs_conv.c ============================================================================== --- stable/11/sys/fs/msdosfs/msdosfs_conv.c Mon May 14 17:49:41 2018 (r333609) +++ stable/11/sys/fs/msdosfs/msdosfs_conv.c Mon May 14 19:20:37 2018 (r333610) @@ -568,7 +568,7 @@ unix2winfn(const u_char *un, size_t unlen, struct wine if (!code) end = WIN_LAST; } - if (*un == '\0') + if (!unlen) end = WIN_LAST; wep->weCnt |= end; return !end; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"