From 4d73c7c4f1d50c760d0fdb64e36eb9e40ec6c6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Thu, 3 Jun 2010 10:13:30 +0200 Subject: [PATCH] Fixed characters not allowed by Windows in names --- libntfs-3g/unistr.c | 4 +++- src/ntfs-3g.8.in | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libntfs-3g/unistr.c b/libntfs-3g/unistr.c index 5d16294d..cc3a1b8d 100644 --- a/libntfs-3g/unistr.c +++ b/libntfs-3g/unistr.c @@ -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 ? \ | 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