[Box Backup-commit] COMMIT r1825 - box/chris/merge/lib/win32
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Fri Sep 7 22:55:53 BST 2007
Author: chris
Date: 2007-09-07 22:55:53 +0100 (Fri, 07 Sep 2007)
New Revision: 1825
Modified:
box/chris/merge/lib/win32/emu.cpp
Log:
No need to print syslog() messages any more, now that we have a logging
framework. (merges [1814])
Modified: box/chris/merge/lib/win32/emu.cpp
===================================================================
--- box/chris/merge/lib/win32/emu.cpp 2007-09-07 21:55:07 UTC (rev 1824)
+++ box/chris/merge/lib/win32/emu.cpp 2007-09-07 21:55:53 UTC (rev 1825)
@@ -509,9 +509,17 @@
tmpStr = "";
return tmpStr;
}
-
- if (filename.length() >= 1 && filename[0] == '\\')
+
+ if (filename.length() > 2 && filename[0] == '\\' &&
+ filename[1] == '\\')
{
+ tmpStr += "UNC\\";
+ filename.replace(0, 2, "");
+ // \\?\UNC\<server>\<share>
+ // see http://msdn2.microsoft.com/en-us/library/aa365247.aspx
+ }
+ else if (filename.length() >= 1 && filename[0] == '\\')
+ {
// root directory of current drive.
tmpStr = wd;
tmpStr.resize(2); // drive letter and colon
@@ -1520,8 +1528,8 @@
sHaveWarnedEventLogFull = false;
}
- printf("%s\r\n", buffer);
- fflush(stdout);
+ // printf("%s\r\n", buffer);
+ // fflush(stdout);
}
int emu_chdir(const char* pDirName)
More information about the Boxbackup-commit
mailing list