mirror of
https://github.com/norohind/hans.git
synced 2025-04-15 06:00:33 +03:00
Throw exception when trying to drop privileges on windows
This commit is contained in:
parent
ca42f469b4
commit
b805963b3a
@ -195,7 +195,9 @@ void Worker::stop()
|
||||
|
||||
void Worker::dropPrivileges()
|
||||
{
|
||||
#ifndef WIN32
|
||||
#ifdef WIN32
|
||||
throw Exception("not supported");
|
||||
#else
|
||||
if (uid <= 0 || privilegesDropped)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user