Remove setuid support

This support was rarely ever used and has been disabled by default for some time.

As far as the developer team is aware there's no distribution that activated this
feature in their packages by default.
This commit is contained in:
Benny Baumann
2021-02-16 19:34:42 +01:00
parent b1befa3287
commit a73064dda9
5 changed files with 7 additions and 63 deletions

11
CRT.h
View File

@ -160,20 +160,9 @@ extern int CRT_scrollWheelVAmount;
extern ColorScheme CRT_colorScheme;
#ifdef HAVE_SETUID_ENABLED
void CRT_dropPrivileges(void);
void CRT_restorePrivileges(void);
#else /* HAVE_SETUID_ENABLED */
/* Turn setuid operations into NOPs */
static inline void CRT_dropPrivileges(void) { }
static inline void CRT_restorePrivileges(void) { }
#endif /* HAVE_SETUID_ENABLED */
void CRT_init(const Settings* settings, bool allowUnicode);
void CRT_done(void);