Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/kate/main.cpp 2018-08-06 08:14:55.563340125 +0200
- +++ b/kate/main.cpp 2018-08-06 08:20:27.573348320 +0200
- @@ -60,18 +60,6 @@
- int main(int argc, char **argv)
- {
- -#ifndef Q_OS_WIN
- - // 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::endl;
- - return EXIT_FAILURE;
- - } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
- - std::cout << "Executing Kate with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
- - return EXIT_FAILURE;
- - }
- - }
- -#endif
- /**
- * init resources from our static lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement