From e4b3c59cb1f7b56b5cda52b216a56b8c8e9494de Mon Sep 17 00:00:00 2001 From: jpandre Date: Fri, 18 Sep 2009 16:17:21 +0000 Subject: [PATCH] Accepted initial spaces in Win32/DOS names --- libntfs-3g/unistr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libntfs-3g/unistr.c b/libntfs-3g/unistr.c index 55ce1e8f..0db6d536 100644 --- a/libntfs-3g/unistr.c +++ b/libntfs-3g/unistr.c @@ -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