Skip to content
Snippets Groups Projects
Commit 6748ad27 authored by rswindell's avatar rswindell
Browse files

For some reason (Deuce?) it was allowing non-root users to attempt to rebind

low ports, even if DONT_BLAME_SYNCHRONET was not defined, which of course
would fail. Afaik, no Unix should allow this and I'm not sure why it was
using _THREAD_SUID_BROKEN (e.g. LinuxThreads) for this determination at all.
parent d552b2c9
No related branches found
No related tags found
No related merge requests found
......@@ -1586,7 +1586,7 @@ int main(int argc, char** argv)
/* Can't recycle servers (re-bind ports) as non-root user */
/* If DONT_BLAME_SYNCHRONET is set, keeps root credentials laying around */
#if !defined(DONT_BLAME_SYNCHRONET) && !defined(_THREAD_SUID_BROKEN)
#if !defined(DONT_BLAME_SYNCHRONET)
if(bbs_startup.telnet_port < IPPORT_RESERVED
|| (bbs_startup.options & BBS_OPT_ALLOW_RLOGIN
&& bbs_startup.rlogin_port < IPPORT_RESERVED))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment