ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

fix_directory_separators(char *path) destroys UNC ("\\networkpath\path\file.txt") paths #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. fix_directory_separators("\\networkpath\path\file.txt") ==
"\networkpath\path\file.txt")  (Note lost "\")
2.
3.

What is the expected output? What do you see instead?
fix_directory_separators should preserve valid UNC paths, ie "\\" is valid
at begining of path.
fix_directory_separators("\\networkpath\path\file.txt") ==
"\\networkpath\path\file.txt"

What version of the product are you using? On what operating system?
mongoose 2.4 on Windows

Please provide any additional information below.

Original issue reported on code.google.com by muchadhe...@gmail.com on 11 Mar 2009 at 12:03

GoogleCodeExporter commented 9 years ago

Original comment by valenok on 11 Mar 2009 at 9:36

GoogleCodeExporter commented 9 years ago
Fixed by
http://code.google.com/p/mongoose/source/detail?r=249
http://code.google.com/p/mongoose/source/detail?r=250

Original comment by valenok on 25 Mar 2009 at 10:52

GoogleCodeExporter commented 9 years ago
Oops. I have closed the wrong bug. Reopening this one.

Original comment by valenok on 25 Mar 2009 at 10:54

GoogleCodeExporter commented 9 years ago
Fixed by http://code.google.com/p/mongoose/source/detail?r=253
I have added a unit test, but since I do not have real Windows network, it 
would be 
nice if you verify the fix.

If verified positively, please set status to "Verified".
If negatively, please set status to "Accepted" again.

You could build the executable from the latest SVN, or wait until 2.5 is 
released.

Original comment by valenok on 25 Mar 2009 at 11:28