Accepted initial spaces in Win32/DOS names

N2009_11_14_FIXES
jpandre 2009-09-18 16:17:21 +00:00
parent 84605fd3d7
commit e4b3c59cb1
1 changed files with 1 additions and 3 deletions

View File

@ -1096,9 +1096,7 @@ BOOL ntfs_forbidden_chars(const ntfschar *name, int len)
| (1L << ('>' - 0x20))
| (1L << ('?' - 0x20));
forbidden = (len == 0)
|| (le16_to_cpu(name[0]) == ' ')
|| (le16_to_cpu(name[len-1]) == ' ');
forbidden = (len == 0) || (le16_to_cpu(name[len-1]) == ' ');
for (i=0; i<len; i++) {
ch = le16_to_cpu(name[i]);
if ((ch < 0x20)