Advertisement
Guest User

kate-root

a guest
Jun 10th, 2019
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement