[Box Backup-dev] COMMIT r666 - box/chris/general/lib/backupclient

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sun Jul 23 00:18:54 BST 2006


Author: chris
Date: 2006-07-22 23:18:49 +0000 (Sat, 22 Jul 2006)
New Revision: 666

Modified:
   box/chris/general/lib/backupclient/BackupClientFileAttributes.cpp
Log:
* BackupClientFileAttributes.cpp
- Disabled Unix code under Win32, avoid the only other call to geteuid()


Modified: box/chris/general/lib/backupclient/BackupClientFileAttributes.cpp
===================================================================
--- box/chris/general/lib/backupclient/BackupClientFileAttributes.cpp	2006-07-22 23:17:52 UTC (rev 665)
+++ box/chris/general/lib/backupclient/BackupClientFileAttributes.cpp	2006-07-22 23:18:49 UTC (rev 666)
@@ -642,6 +642,7 @@
 	}
 	
 	// If working as root, set user IDs
+	#ifndef WIN32
 	if(::geteuid() == 0)
 	{
 		#ifndef HAVE_LCHOWN
@@ -661,6 +662,7 @@
 			}
 		#endif
 	}
+	#endif
 
 	if(static_cast<int>(xattrOffset+sizeof(u_int32_t))<=mpClearAttributes->GetSize())
 	{




More information about the Boxbackup-dev mailing list