Guest User

kate-root

a guest
Jun 10th, 2019
170
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/kate/main.cpp 2018-08-06 08:14:55.563340125 +0200
  2. +++ b/kate/main.cpp 2018-08-06 08:20:27.573348320 +0200
  3. @@ -60,18 +60,6 @@
  4.  
  5. int main(int argc, char **argv)
  6. {
  7. -#ifndef Q_OS_WIN
  8. - // Prohibit using sudo or kdesu (but allow using the root user directly)
  9. - if (getuid() == 0) {
  10. - if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
  11. - std::cout << "Executing Kate with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
  12. - return EXIT_FAILURE;
  13. - } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
  14. - std::cout << "Executing Kate with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
  15. - return EXIT_FAILURE;
  16. - }
  17. - }
  18. -#endif
  19. /**
  20. * init resources from our static lib
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×