[Box Backup-dev] COMMIT r875 - box/chris/merge/lib/backupclient
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Thu Aug 31 23:14:22 BST 2006
Author: chris
Date: 2006-08-31 23:14:22 +0100 (Thu, 31 Aug 2006)
New Revision: 875
Modified:
box/chris/merge/lib/backupclient/BackupClientFileAttributes.cpp
Log:
* lib/backupclient/BackupClientFileAttributes.cpp
Don't call geteuid() on Win32, since it's emulated, always returns
0, and I want to remove it entirely (refs #3)
Modified: box/chris/merge/lib/backupclient/BackupClientFileAttributes.cpp
===================================================================
--- box/chris/merge/lib/backupclient/BackupClientFileAttributes.cpp 2006-08-31 22:11:50 UTC (rev 874)
+++ box/chris/merge/lib/backupclient/BackupClientFileAttributes.cpp 2006-08-31 22:14:22 UTC (rev 875)
@@ -642,7 +642,11 @@
}
// If working as root, set user IDs
+ #ifdef WIN32
+ if(0)
+ #else
if(::geteuid() == 0)
+ #endif
{
#ifndef HAVE_LCHOWN
// only if not a link, can't set their owner on this platform
More information about the Boxbackup-dev
mailing list