aboutsummaryrefslogtreecommitdiff
path: root/net/znc/patches
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2018-07-12 15:22:30 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2018-07-27 15:10:42 +0200
commita9051ca918130c8d0ddeec577c66f4406d379804 (patch)
treefff4189a3ee5503dfe9f00333ce0fbaed995060b /net/znc/patches
parentcb202c0acbc4b07847a7cd07e5f642f54dafad83 (diff)
znc: drop unneeded root check patch
We don't run znc as root anymore, so no need to do the root check after loading the config. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'net/znc/patches')
-rw-r--r--net/znc/patches/100-move_rootcheck_after_config.patch52
1 files changed, 0 insertions, 52 deletions
diff --git a/net/znc/patches/100-move_rootcheck_after_config.patch b/net/znc/patches/100-move_rootcheck_after_config.patch
deleted file mode 100644
index 6da68493d..000000000
--- a/net/znc/patches/100-move_rootcheck_after_config.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-diff --git a/src/main.cpp b/src/main.cpp
-index 6ea10ec..0bf028b 100644
---- a/src/main.cpp
-+++ b/src/main.cpp
-@@ -422,23 +422,6 @@ int main(int argc, char** argv) {
- CUtils::PrintStatus(true, "");
- }
-
-- if (isRoot()) {
-- CUtils::PrintError(
-- "You are running ZNC as root! Don't do that! There are not many "
-- "valid");
-- CUtils::PrintError(
-- "reasons for this and it can, in theory, cause great damage!");
-- if (!bAllowRoot) {
-- CZNC::DestroyInstance();
-- return 1;
-- }
-- CUtils::PrintError("You have been warned.");
-- CUtils::PrintError(
-- "Hit CTRL+C now if you don't want to run ZNC as root.");
-- CUtils::PrintError("ZNC will start in 30 seconds.");
-- sleep(30);
-- }
--
- if (bMakeConf) {
- if (!pZNC->WriteNewConfig(sConfig)) {
- CZNC::DestroyInstance();
-@@ -460,6 +443,23 @@ int main(int argc, char** argv) {
- return 1;
- }
-
-+ if (isRoot()) {
-+ CUtils::PrintError(
-+ "You are running ZNC as root! Don't do that! There are not many "
-+ "valid");
-+ CUtils::PrintError(
-+ "reasons for this and it can, in theory, cause great damage!");
-+ if (!bAllowRoot) {
-+ CZNC::DestroyInstance();
-+ return 1;
-+ }
-+ CUtils::PrintError("You have been warned.");
-+ CUtils::PrintError(
-+ "Hit CTRL+C now if you don't want to run ZNC as root.");
-+ CUtils::PrintError("ZNC will start in 30 seconds.");
-+ sleep(30);
-+ }
-+
- if (bForeground) {
- int iPid = getpid();
- CUtils::PrintMessage("Staying open for debugging [pid: " +