From 076e879ac1ea1ccc33deed2b4b95534830a5832b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 4 Mar 2002 22:56:37 +0000 Subject: Canonicalise pathnames returned to Windows directory separators. Found by Andrew at connectathon with some new tests Jeremy. (This used to be commit 4aaa4f52b8fc712f5f879ae5c47ba4601281b4e8) --- source3/smbd/trans2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/smbd') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 8e2bfd14b0..501057830a 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1559,6 +1559,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn, pstrcpy(dos_fname, "\\"); } else { snprintf(dos_fname, sizeof(dos_fname), "\\%s", fname); + string_replace( dos_fname, '/', '\\'); } switch (info_level) { -- cgit