diff options
author | Jeremy Allison <jra@samba.org> | 2002-03-04 22:56:37 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-03-04 22:56:37 +0000 |
commit | 076e879ac1ea1ccc33deed2b4b95534830a5832b (patch) | |
tree | 83872cd1a7f7031252582c2c7ca1e20c94bdd0ee /source3/smbd | |
parent | a2b95edf7f2f9c0778dbfecf482e8baa7eb32b87 (diff) | |
download | samba-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)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 1 |
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) { |