From 032089ce7a78ecba828b11162fef7fc7616c17ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Friedrich=20Scho=CC=88ller?= Date: Tue, 5 Jan 2016 16:05:10 +0100 Subject: [PATCH] Fixed "not supported" error on Windows --- src/worker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/worker.cpp b/src/worker.cpp index 9ff0dc2..6a48230 100644 --- a/src/worker.cpp +++ b/src/worker.cpp @@ -195,12 +195,12 @@ void Worker::stop() void Worker::dropPrivileges() { -#ifdef WIN32 - throw Exception("not supported"); -#else if (uid <= 0 || privilegesDropped) return; +#ifdef WIN32 + throw Exception("dropping privileges not supported"); +#else syslog(LOG_INFO, "dropping privileges"); if (setgid(gid) == -1)