From 28b2b107d7bc31d4385d530d88afb4bfa9775f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Wed, 15 Apr 2015 21:48:27 +0200 Subject: [PATCH] vfs_fruit: also map characters below 0x20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we need to map 0x01-0x1F to 0xF001-0xF01F as 0x01-0x1F are win32 illegal characters. see https://support.microsoft.com/en-us/kb/kbview/117258 Even if the MS KB article writes "invalid ntfs characters" they are actually not illegal in ntfs, just in the win32 API. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11221 Signed-off-by: Bjoern Jacke Reviewed-by: Ralf Böhme Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Apr 17 20:00:48 CEST 2015 on sn-devel-104 (cherry picked from commit 60fbfc5563ada64ea145e93ceaee791165d78e64) --- source3/modules/vfs_fruit.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 80e532a..980cbc4 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -2039,6 +2039,14 @@ static int fruit_connect(vfs_handle_struct *handle, lp_do_parameter( SNUM(handle->conn), "catia:mappings", + "0x01:0xf001,0x02:0xf002,0x03:0xf003,0x04:0xf004," + "0x05:0xf005,0x06:0xf006,0x07:0xf007,0x08:0xf008," + "0x09:0xf009,0x0a:0xf00a,0x0b:0xf00b,0x0c:0xf00c," + "0x0d:0xf00d,0x0e:0xf00e,0x0f:0xf00f,0x10:0xf010," + "0x11:0xf011,0x12:0xf012,0x13:0xf013,0x14:0xf014," + "0x15:0xf015,0x16:0xf016,0x17:0xf017,0x18:0xf018," + "0x19:0xf019,0x1a:0xf01a,0x1b:0xf01b,0x1c:0xf01c," + "0x1d:0xf01d,0x1e:0xf01e,0x1f:0xf01f," "0x22:0xf020,0x2a:0xf021,0x3a:0xf022,0x3c:0xf023," "0x3e:0xf024,0x3f:0xf025,0x5c:0xf026,0x7c:0xf027," "0x0d:0xf00d"); -- 2.1.0