diff options
Diffstat (limited to 'source/kde/kde/patch/kate/kate_runasroot.patch')
-rw-r--r-- | source/kde/kde/patch/kate/kate_runasroot.patch | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/source/kde/kde/patch/kate/kate_runasroot.patch b/source/kde/kde/patch/kate/kate_runasroot.patch index 3cc919faf..7d2bc3c85 100644 --- a/source/kde/kde/patch/kate/kate_runasroot.patch +++ b/source/kde/kde/patch/kate/kate_runasroot.patch @@ -1,42 +1,30 @@ ---- ./kwrite/main.cpp.orig 2021-08-12 21:30:09.752256555 -0500 -+++ ./kwrite/main.cpp 2021-08-12 21:32:05.046259134 -0500 -@@ -41,17 +41,15 @@ - // Prohibit using sudo or kdesu (but allow using the root user directly) - if (getuid() == 0) { - if (!qEnvironmentVariableIsEmpty("SUDO_USER")) { -- std::cout << "Executing KWrite with sudo is not possible due to unfixable security vulnerabilities. " -+ std::cout << "Executing KWrite with sudo is UNSAFE 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." +--- ./kwrite/main.cpp.orig 2022-04-22 01:59:34.794311631 -0500 ++++ ./kwrite/main.cpp 2022-04-22 02:01:06.318313678 -0500 +@@ -46,13 +46,11 @@ + "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. " -+ std::cout << "Executing KWrite with kdesu is UNSAFE 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; } } #endif ---- ./kate/main.cpp.orig 2021-08-04 21:13:14.000000000 -0500 -+++ ./kate/main.cpp 2021-08-12 21:30:09.753256555 -0500 -@@ -49,17 +49,15 @@ - // Prohibit using sudo or kdesu (but allow using the root user directly) - if (getuid() == 0) { - if (!qEnvironmentVariableIsEmpty("SUDO_USER")) { -- std::cout << "Executing Kate with sudo is not possible due to unfixable security vulnerabilities. " -+ std::cout << "Executing Kate with sudo is UNSAFE 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." +--- ./kate/main.cpp.orig 2022-04-22 01:59:34.794311631 -0500 ++++ ./kate/main.cpp 2022-04-22 02:01:46.125314569 -0500 +@@ -54,13 +54,11 @@ + "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. " -+ std::cout << "Executing Kate with kdesu is UNSAFE 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; } |