Fixed characters not allowed by Windows in names
parent
15c4d282ce
commit
4d73c7c4f1
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue