summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-05-09 16:03:46 +0200
committer Eric Hameleers <alien@slackware.com>2019-05-09 16:03:46 +0200
commit8ccc6d1c8163fe883852412f191f05a74ddc0b1f (patch)
treebb7d8aca0144d573d70da4f963fd5d4b300d3a02
parentdc8a0f6236cc71cb7af7259cbaae6798c57128c3 (diff)
downloadktown-8ccc6d1c8163fe883852412f191f05a74ddc0b1f.tar.gz
ktown-8ccc6d1c8163fe883852412f191f05a74ddc0b1f.tar.xz
Kate: update the patch that allows running kate and kwrite using sudo/kdesu
-rw-r--r--kde/patch/kate/kate_runasroot.patch24
1 files changed, 12 insertions, 12 deletions
diff --git a/kde/patch/kate/kate_runasroot.patch b/kde/patch/kate/kate_runasroot.patch
index 07139c4..f549fc3 100644
--- a/kde/patch/kate/kate_runasroot.patch
+++ b/kde/patch/kate/kate_runasroot.patch
@@ -1,10 +1,10 @@
The user gets to decide whether she wants to run kate as root.
Please developers, do not presume that a Slackware user is dumb.
-diff -uar kate-18.08.0.orig/kate/main.cpp kate-18.08.0/kate/main.cpp
---- kate-18.08.0.orig/kate/main.cpp 2018-08-06 22:41:28.000000000 +0200
-+++ kate-18.08.0/kate/main.cpp 2018-08-11 00:23:36.968895970 +0200
-@@ -61,14 +61,12 @@
+diff -uar kate-19.04.1.orig/kate/main.cpp kate-19.04.1/kate/main.cpp
+--- kate-19.04.1.orig/kate/main.cpp 2019-05-02 12:44:53.000000000 +0200
++++ kate-19.04.1/kate/main.cpp 2019-05-08 21:26:07.196338144 +0200
+@@ -59,14 +59,12 @@
int main(int argc, char **argv)
{
#ifndef Q_OS_WIN
@@ -22,10 +22,10 @@ diff -uar kate-18.08.0.orig/kate/main.cpp kate-18.08.0/kate/main.cpp
}
}
#endif
-diff -uar kate-18.08.0.orig/kwrite/main.cpp kate-18.08.0/kwrite/main.cpp
---- kate-18.08.0.orig/kwrite/main.cpp 2018-08-06 22:41:28.000000000 +0200
-+++ kate-18.08.0/kwrite/main.cpp 2018-08-11 00:24:06.456910567 +0200
-@@ -50,14 +50,12 @@
+diff -uar kate-19.04.1.orig/kwrite/main.cpp kate-19.04.1/kwrite/main.cpp
+--- kate-19.04.1.orig/kwrite/main.cpp 2019-05-02 12:44:53.000000000 +0200
++++ kate-19.04.1/kwrite/main.cpp 2019-05-08 21:27:52.034134472 +0200
+@@ -51,14 +51,12 @@
extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
{
#ifndef Q_OS_WIN
@@ -33,13 +33,13 @@ diff -uar kate-18.08.0.orig/kwrite/main.cpp kate-18.08.0/kwrite/main.cpp
+ // Warn 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::endl;
+- std::cout << "Executing KWrite with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
- return EXIT_FAILURE;
-+ std::cout << "Executing Kate with sudo is UNSAFE due to unfixable security vulnerabilities." << std::endl;
++ std::cout << "Executing KWrite with sudo is UNSAFE due to unfixable security vulnerabilities." << std::endl;
} else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
-- std::cout << "Executing Kate with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
+- std::cout << "Executing KWrite with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
- return EXIT_FAILURE;
-+ std::cout << "Executing Kate with kdesu is UNSAFE due to unfixable security vulnerabilities." << std::endl;
++ std::cout << "Executing KWrite with kdesu is UNSAFE due to unfixable security vulnerabilities." << std::endl;
}
}
#endif