summaryrefslogtreecommitdiff
path: root/lib/common/UnixUser.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-08-31 22:33:05 +0000
committerChris Wilson <chris+github@qwirx.com>2006-08-31 22:33:05 +0000
commit85d5ccab78c156a8113cfef02748facb91aa6393 (patch)
tree042d589552112451bc2ef730d2b05300e9572388 /lib/common/UnixUser.cpp
parente0e456e245ff5b39a8675d70e19882599df135b7 (diff)
Revert to trunk
Diffstat (limited to 'lib/common/UnixUser.cpp')
-rw-r--r--lib/common/UnixUser.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/common/UnixUser.cpp b/lib/common/UnixUser.cpp
index d0fd337b..df2d0ddd 100644
--- a/lib/common/UnixUser.cpp
+++ b/lib/common/UnixUser.cpp
@@ -75,7 +75,6 @@ UnixUser::UnixUser(uid_t UID, gid_t GID)
// --------------------------------------------------------------------------
UnixUser::~UnixUser()
{
-#ifndef WIN32
if(mRevertOnDestruction)
{
// Revert to "real" user and group id of the process
@@ -85,7 +84,6 @@ UnixUser::~UnixUser()
THROW_EXCEPTION(CommonException, CouldNotRestoreProcessUser)
}
}
-#endif
}
@@ -100,7 +98,6 @@ UnixUser::~UnixUser()
// --------------------------------------------------------------------------
void UnixUser::ChangeProcessUser(bool Temporary)
{
-#ifndef WIN32
if(Temporary)
{
// Change temporarily (change effective only)
@@ -122,7 +119,6 @@ void UnixUser::ChangeProcessUser(bool Temporary)
THROW_EXCEPTION(CommonException, CouldNotChangeProcessUser)
}
}
-#endif
}