summaryrefslogtreecommitdiff
path: root/lib/backupclient
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-08-31 22:14:22 +0000
committerChris Wilson <chris+github@qwirx.com>2006-08-31 22:14:22 +0000
commit0ed31fe9c03c894be162974e3c7139f5c0f7f040 (patch)
tree1fd2a8726bf1f1daa7de701e1cadaef195658760 /lib/backupclient
parent04302de443ce25e6cda606bd15c173270ddcf783 (diff)
* 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)
Diffstat (limited to 'lib/backupclient')
-rw-r--r--lib/backupclient/BackupClientFileAttributes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/backupclient/BackupClientFileAttributes.cpp b/lib/backupclient/BackupClientFileAttributes.cpp
index 974db3c9..49bae665 100644
--- a/lib/backupclient/BackupClientFileAttributes.cpp
+++ b/lib/backupclient/BackupClientFileAttributes.cpp
@@ -642,7 +642,11 @@ void BackupClientFileAttributes::WriteAttributes(const char *Filename) const
}
// 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