[Box Backup-dev] COMMIT r663 - box/chris/general/bin/bbackupquery

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Jul 22 18:54:41 BST 2006


Author: chris
Date: 2006-07-22 17:54:39 +0000 (Sat, 22 Jul 2006)
New Revision: 663

Modified:
   box/chris/general/bin/bbackupquery/BackupQueries.cpp
Log:
* BackupQueries.cpp
- Force the "running as root" flag to true on Windows, rather than trying
  to call geteuid(); this allows us to remove the geteuid() stub from emu.h


Modified: box/chris/general/bin/bbackupquery/BackupQueries.cpp
===================================================================
--- box/chris/general/bin/bbackupquery/BackupQueries.cpp	2006-07-21 18:25:34 UTC (rev 662)
+++ box/chris/general/bin/bbackupquery/BackupQueries.cpp	2006-07-22 17:54:39 UTC (rev 663)
@@ -69,7 +69,11 @@
 	  mWarnedAboutOwnerAttributes(false),
 	  mReturnCode(0)		// default return code
 {
+	#ifdef WIN32
+	mRunningAsRoot = TRUE;
+	#else
 	mRunningAsRoot = (::geteuid() == 0);
+	#endif
 }
 
 // --------------------------------------------------------------------------




More information about the Boxbackup-dev mailing list