Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 6a7f3fa4 authored by deuce's avatar deuce

thread_suid_broken symbol must be in libsbbs.so. This suggests that

the test for NPTL should be in there too and that every app which uses
threads, set*id(), and libsbbs.so should call it.

Does jsexec do this?

If not, should it?
parent fb720bbc
...@@ -91,6 +91,9 @@ static WORD last_node; ...@@ -91,6 +91,9 @@ static WORD last_node;
static bool terminate_server=false; static bool terminate_server=false;
static str_list_t recycle_semfiles; static str_list_t recycle_semfiles;
static str_list_t shutdown_semfiles; static str_list_t shutdown_semfiles;
#ifdef _THREAD_SUID_BROKEN
int thread_suid_broken=TRUE; /* NPTL is no longer broken */
#endif
extern "C" { extern "C" {
......
...@@ -69,6 +69,12 @@ ...@@ -69,6 +69,12 @@
#endif #endif
#ifdef _THREAD_SUID_BROKEN
extern int thread_suid_broken; /* NPTL is no longer broken */
#else
#define thread_suid_broken FALSE
#endif
/******************/ /******************/
/* ANSI C Library */ /* ANSI C Library */
/******************/ /******************/
......
...@@ -200,10 +200,6 @@ static const char* web_usage = "Web server settings:\n" ...@@ -200,10 +200,6 @@ static const char* web_usage = "Web server settings:\n"
"\tw- disable Web server (no services module)\n" "\tw- disable Web server (no services module)\n"
"\n" "\n"
; ;
#ifdef _THREAD_SUID_BROKEN
int thread_suid_broken=TRUE; /* NPTL is no longer broken */
#endif
static int lputs(int level, char *str) static int lputs(int level, char *str)
{ {
static pthread_mutex_t mutex; static pthread_mutex_t mutex;
......
#ifndef _SBBSCON_H_
#define _SBBSCON_H_
#ifdef _THREAD_SUID_BROKEN
extern int thread_suid_broken; /* NPTL is no longer broken */
#else
#define thread_suid_broken FALSE
#endif
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment