summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-04 22:56:37 +0000
committerJeremy Allison <jra@samba.org>2002-03-04 22:56:37 +0000
commit076e879ac1ea1ccc33deed2b4b95534830a5832b (patch)
tree83872cd1a7f7031252582c2c7ca1e20c94bdd0ee
parenta2b95edf7f2f9c0778dbfecf482e8baa7eb32b87 (diff)
downloadsamba-076e879ac1ea1ccc33deed2b4b95534830a5832b.tar.gz
samba-076e879ac1ea1ccc33deed2b4b95534830a5832b.tar.bz2
samba-076e879ac1ea1ccc33deed2b4b95534830a5832b.zip
Canonicalise pathnames returned to Windows directory separators.
Found by Andrew at connectathon with some new tests Jeremy. (This used to be commit 4aaa4f52b8fc712f5f879ae5c47ba4601281b4e8)
-rw-r--r--source3/smbd/trans2.c1
1 files changed, 1 insertions, 0 deletions
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) {