[Box Backup-commit] COMMIT r1416 - box/chris/general/lib/backupclient

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Sat, 10 Mar 2007 19:21:11 +0000


Author: chris
Date: 2007-03-10 19:21:10 +0000 (Sat, 10 Mar 2007)
New Revision: 1416

Modified:
   box/chris/general/lib/backupclient/BackupClientFileAttributes.cpp
Log:
Remove #ifdefs around geteuid() and chown() (no longer required, and Ben
prefers it this way)


Modified: box/chris/general/lib/backupclient/BackupClientFileAttributes.cpp
===================================================================
--- box/chris/general/lib/backupclient/BackupClientFileAttributes.cpp	2007-03-10 19:13:36 UTC (rev 1415)
+++ box/chris/general/lib/backupclient/BackupClientFileAttributes.cpp	2007-03-10 19:21:10 UTC (rev 1416)
@@ -642,7 +642,6 @@
 	}
 	
 	// If working as root, set user IDs
-	#ifndef WIN32
 	if(::geteuid() == 0)
 	{
 		#ifndef HAVE_LCHOWN
@@ -662,7 +661,6 @@
 			}
 		#endif
 	}
-	#endif
 
 	if(static_cast<int>(xattrOffset+sizeof(u_int32_t))<=mpClearAttributes->GetSize())
 	{