Throw exception when trying to drop privileges on windows

This commit is contained in:
Friedrich Schöller 2013-05-22 02:13:23 +02:00
parent ca42f469b4
commit b805963b3a

View File

@ -195,7 +195,9 @@ void Worker::stop()
void Worker::dropPrivileges()
{
#ifndef WIN32
#ifdef WIN32
throw Exception("not supported");
#else
if (uid <= 0 || privilegesDropped)
return;