tDo nothing if we're not running setgid/uid - vaccinewars - be a doctor and try to vaccinate the world | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 5bbdb7e759d610f6708356a3dc6a824984b5af25 | |
parent 5108d0b047eeab85cc782da201d59b6ff04b5902 | |
Author: Ben Webb | |
Date: Sat, 31 Oct 2020 23:01:07 -0700 Do nothing if we're not running setgid/uid Diffstat: M src/serverside.c | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- | |
diff --git a/src/serverside.c b/src/serverside.c | |
t@@ -1835,6 +1835,8 @@ void CloseHighScoreFile() */ void DropPrivileges() { + if (issetugid() == 0) return; + #ifndef CYGWIN /* Ignore the return from setregid; we'll check it ourselves to be sure * (this avoids problems when running under fakeroot) */ |