SHARE
TWEET

kate-root

a guest Jun 10th, 2019 87 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top