Fixed characters not allowed by Windows in names

PERMISSION_HANDLING_BRANCH
Jean-Pierre André 2010-06-03 10:13:30 +02:00
parent 15c4d282ce
commit 4d73c7c4f1
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -212,9 +212,9 @@ they do not appear in Windows directory displays either.
.B windows_names
This option prevents files, directories and extended attributes to be
created with a name not allowed by windows, either because it contains
some not allowed character (which are the nine characters " * / : < > ? \ | and
those whose code is less than 0x20) or because the last character is a space.
Existing such files can still be read (and renamed).
some not allowed character (which are the nine characters " * / : < > ? \\ | and
those whose code is less than 0x20) or because the last character is a space
or a dot. Existing such files can still be read (and renamed).
.TP
.B allow_other
This option overrides the security measure restricting file access