mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-13 03:00:31 +00:00
21 lines
396 B
Diff
21 lines
396 B
Diff
Fix seccomp crash with setuid(0)
|
|
|
|
--- a/src/ngircd/ngircd.c
|
|
+++ b/src/ngircd/ngircd.c
|
|
@@ -737,7 +737,6 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
|
|
"Can't drop supplementary group IDs: setgroups(3) missing!");
|
|
#endif
|
|
}
|
|
-#endif
|
|
|
|
/* Change user ID */
|
|
if (getuid() != Conf_UID) {
|
|
@@ -751,6 +750,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
|
|
goto out;
|
|
}
|
|
}
|
|
+#endif
|
|
|
|
initialized = true;
|
|
|