kate
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
diff -Nuar a/kwrite/main.cpp b/kwrite/main.cpp
|
diff -Nuar a/kwirte/main.cpp b/kwirte/main.cpp
|
||||||
--- a/kwrite/main.cpp 2021-04-14 18:06:06.000000000 +0300
|
--- a/kwirte/main.cpp 2021-08-27 23:54:04.000000000 +0300
|
||||||
+++ b/kwrite/main.cpp 2021-05-09 23:16:04.812841633 +0300
|
+++ b/kwirte/main.cpp 2021-09-13 17:58:21.634483000 +0300
|
||||||
@@ -30,31 +30,8 @@
|
@@ -30,31 +30,8 @@
|
||||||
|
|
||||||
#include <urlinfo.h>
|
#include <urlinfo.h>
|
||||||
@@ -12,7 +12,7 @@ diff -Nuar a/kwrite/main.cpp b/kwrite/main.cpp
|
|||||||
-
|
-
|
||||||
extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
|
extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
-#ifndef Q_OS_WIN
|
-#if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU)
|
||||||
- // Prohibit using sudo or kdesu (but allow using the root user directly)
|
- // Prohibit using sudo or kdesu (but allow using the root user directly)
|
||||||
- if (getuid() == 0) {
|
- if (getuid() == 0) {
|
||||||
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user