summaryrefslogtreecommitdiffstats
path: root/source/kde/kde/patch/kate/kate_runasroot.patch
blob: 3cc919faf1a804250668f25bfcb5ddcaffde3433 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- ./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."
                       << 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::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."
                       << 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::endl;
-            return EXIT_FAILURE;
         }
     }
 #endif