kde-applications
This commit is contained in:
@@ -7,19 +7,19 @@ diff -Nuar a/src/main.cpp b/src/main.cpp
|
||||
// Prohibit using sudo or kdesu (but allow using the root user directly)
|
||||
- if (getuid() == 0) {
|
||||
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||
- std::cout << "Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities." << std::endl;
|
||||
- std::cout << "Running dolphin with sudo can cause bugs and expose you to security vulnerabilities." << std::endl;
|
||||
- return EXIT_FAILURE;
|
||||
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
||||
- std::cout << "Running Dolphin with kdesu can cause bugs and expose you to security vulnerabilities." << std::endl;
|
||||
- } else if (!qEnvironmentVariableIsEmpty("kdesu_USER")) {
|
||||
- std::cout << "Running dolphin with kdesu can cause bugs and expose you to security vulnerabilities." << std::endl;
|
||||
- return EXIT_FAILURE;
|
||||
- }
|
||||
- }
|
||||
+ //if (getuid() == 0) {
|
||||
+ // if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||
+ // std::cout << "Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities." << std::endl;
|
||||
+ // std::cout << "Running dolphin with sudo can cause bugs and expose you to security vulnerabilities." << std::endl;
|
||||
+ // return EXIT_FAILURE;
|
||||
+ //} else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
||||
+ // std::cout << "Running Dolphin with kdesu can cause bugs and expose you to security vulnerabilities." << std::endl;
|
||||
+ //} else if (!qEnvironmentVariableIsEmpty("kdesu_USER")) {
|
||||
+ // std::cout << "Running dolphin with kdesu can cause bugs and expose you to security vulnerabilities." << std::endl;
|
||||
+ //return EXIT_FAILURE;
|
||||
+ //}
|
||||
+ //}
|
||||
|
||||
Reference in New Issue
Block a user