summarylogtreecommitdiffstats
path: root/0001-Defuse-root-block.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-Defuse-root-block.patch')
-rw-r--r--0001-Defuse-root-block.patch28
1 files changed, 14 insertions, 14 deletions
diff --git a/0001-Defuse-root-block.patch b/0001-Defuse-root-block.patch
index 7d57d02c86f4..8a65b66064bd 100644
--- a/0001-Defuse-root-block.patch
+++ b/0001-Defuse-root-block.patch
@@ -16,7 +16,7 @@ Index: kate/main.cpp
===================================================================
--- a/kate/main.cpp 2018-12-25 09:49:15.867478873 +0100
+++ b/kate/main.cpp 2018-12-25 09:49:19.231424088 +0100
-@@ -46,21 +46,10 @@
+@@ -47,21 +47,10 @@
int main(int argc, char **argv)
{
#if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU)
@@ -24,15 +24,15 @@ Index: kate/main.cpp
+ // Allow running Kate as root, but with a warning
if (getuid() == 0) {
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
-- std::cout << "Executing Kate with sudo is not possible due to unfixable security vulnerabilities. "
-- "It is also not necessary; simply use Kate normally, and you will be prompted for "
-- "elevated privileges when saving documents if needed."
+- std::cout << "Running Kate with sudo can cause bugs and expose you to security vulnerabilities. "
+- "Instead use Kate normally and you will be prompted for elevated privileges when "
+- "saving documents if needed."
- << std::endl;
- return EXIT_FAILURE;
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
-- std::cout << "Executing Kate with kdesu is not possible due to unfixable security vulnerabilities. "
-- "It is also not necessary; simply use Kate normally, and you will be prompted for "
-- "elevated privileges when saving documents if needed."
+- std::cout << "Running Kate with kdesu can cause bugs and expose you to security vulnerabilities. "
+- "Instead use Kate normally and you will be prompted for elevated privileges when "
+- "saving documents if needed."
- << std::endl;
- return EXIT_FAILURE;
- }
@@ -45,7 +45,7 @@ Index: kwrite/main.cpp
===================================================================
--- a/kwrite/main.cpp 2018-12-25 09:49:19.231424088 +0100
+++ b/kwrite/main.cpp 2018-12-25 09:50:32.302253532 +0100
-@@ -38,21 +38,10 @@
+@@ -39,21 +39,10 @@
extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
{
#if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU)
@@ -53,15 +53,15 @@ Index: kwrite/main.cpp
+ // Allow running KWrite as root, but with a warning
if (getuid() == 0) {
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
-- std::cout << "Executing KWrite with sudo is not possible due to unfixable security vulnerabilities. "
-- "It is also not necessary; simply use KWrite normally, and you will be prompted for "
-- "elevated privileges when saving documents if needed."
+- std::cout << "Running KWrite with sudo can cause bugs and expose you to security vulnerabilities. "
+- "Instead use KWrite normally and you will be prompted for elevated privileges when "
+- "saving documents if needed."
- << std::endl;
- return EXIT_FAILURE;
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
-- std::cout << "Executing KWrite with kdesu is not possible due to unfixable security vulnerabilities. "
-- "It is also not necessary; simply use KWrite normally, and you will be prompted for "
-- "elevated privileges when saving documents if needed."
+- std::cout << "Running KWrite with kdesu can cause bugs and expose you to security vulnerabilities. "
+- "Instead use KWrite normally and you will be prompted for elevated privileges when "
+- "saving documents if needed."
- << std::endl;
- return EXIT_FAILURE;
- }