[Box Backup-dev] COMMIT r637 - box/chris/general/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Thu, 6 Jul 2006 20:56:07 +0000 (GMT)
Author: chris
Date: 2006-07-06 20:56:05 +0000 (Thu, 06 Jul 2006)
New Revision: 637
Modified:
box/chris/general/lib/common/UnixUser.cpp
Log:
* UnixUser.cpp
- Disable user changing code on Win32
Modified: box/chris/general/lib/common/UnixUser.cpp
===================================================================
--- box/chris/general/lib/common/UnixUser.cpp 2006-07-06 20:55:40 UTC (rev 636)
+++ box/chris/general/lib/common/UnixUser.cpp 2006-07-06 20:56:05 UTC (rev 637)
@@ -75,6 +75,7 @@
// --------------------------------------------------------------------------
UnixUser::~UnixUser()
{
+#ifndef WIN32
if(mRevertOnDestruction)
{
// Revert to "real" user and group id of the process
@@ -84,6 +85,7 @@
THROW_EXCEPTION(CommonException, CouldNotRestoreProcessUser)
}
}
+#endif
}
@@ -98,6 +100,7 @@
// --------------------------------------------------------------------------
void UnixUser::ChangeProcessUser(bool Temporary)
{
+#ifndef WIN32
if(Temporary)
{
// Change temporarily (change effective only)
@@ -119,6 +122,7 @@
THROW_EXCEPTION(CommonException, CouldNotChangeProcessUser)
}
}
+#endif
}