[Box Backup-dev] COMMIT r582 - in box/chris/general: lib/server lib/win32 test/basicserver test/basicserver/testfiles

Chris Wilson boxbackup-dev@fluffy.co.uk
Tue, 23 May 2006 17:49:21 +0000 (GMT)


Hi Ben,

> I thought the clib on win32 translated path separators automatically?

Unfortunately not. We are using openfile() from emu.cpp instead of 
open(), but I get error 123 (ERROR_INVALID_NAME) when opening a filename 
containing a forward slash.

We could rewrite these to backslashes in openfile(). It would save a lot 
of conditional code in the unit tests, and solve the problem of supplying 
different config files for win32. I will try it and see how it works.

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |