Update dolphin-17.04.0-allow-root.patch
This commit is contained in:
@@ -1,27 +1,40 @@
|
|||||||
--- a/src/main.cpp 2018-08-08 11:18:07.577681862 +0200
|
diff -Nuar a/src/main.cpp b/src/main.cpp
|
||||||
+++ b/src/main.cpp 2018-08-08 11:18:07.404689578 +0200
|
--- a/src/main.cpp 2022-04-13 00:17:49.000000000 +0300
|
||||||
@@ -44,15 +44,15 @@
|
+++ b/src/main.cpp 2022-05-08 10:17:21.036971482 +0300
|
||||||
|
@@ -42,21 +42,21 @@
|
||||||
{
|
{
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
// Prohibit using sudo or kdesu (but allow using the root user directly)
|
// Prohibit using sudo or kdesu (but allow using the root user directly)
|
||||||
- if (getuid() == 0) {
|
- if (getuid() == 0) {
|
||||||
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||||
- std::cout << "Executing Dolphin with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
|
- std::cout << "Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities. "
|
||||||
|
- "Instead use Dolphin normally and you will be prompted for elevated privileges when "
|
||||||
|
- "performing file operations that require them."
|
||||||
|
- << std::endl;
|
||||||
- return EXIT_FAILURE;
|
- return EXIT_FAILURE;
|
||||||
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
||||||
- std::cout << "Executing Dolphin with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
|
- std::cout << "Running Dolphin with kdesu can cause bugs and expose you to security vulnerabilities. "
|
||||||
|
- "Instead use Dolphin normally and you will be prompted for elevated privileges when "
|
||||||
|
- "performing file operations that require them."
|
||||||
|
- << std::endl;
|
||||||
- return EXIT_FAILURE;
|
- return EXIT_FAILURE;
|
||||||
- }
|
- }
|
||||||
- }
|
- }
|
||||||
+ //if (getuid() == 0) {
|
+ //if (getuid() == 0) {
|
||||||
+ // if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
+ // if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||||
+ // std::cout << "Executing Dolphin with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
|
+ // std::cout << "Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities. "
|
||||||
+ // return EXIT_FAILURE;
|
+ // "Instead use Dolphin normally and you will be prompted for elevated privileges when "
|
||||||
+ // } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
+ // "performing file operations that require them."
|
||||||
+ // std::cout << "Executing Dolphin with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
|
+ // << std::endl;
|
||||||
+ // return EXIT_FAILURE;
|
+ //return EXIT_FAILURE;
|
||||||
+ // }
|
+ //} else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
||||||
|
+ // std::cout << "Running Dolphin with kdesu can cause bugs and expose you to security vulnerabilities. "
|
||||||
|
+ // "Instead use Dolphin normally and you will be prompted for elevated privileges when "
|
||||||
|
+ // "performing file operations that require them."
|
||||||
|
+ // << std::endl;
|
||||||
|
+ //return EXIT_FAILURE;
|
||||||
|
+ //}
|
||||||
+ //}
|
+ //}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user