Revert "Disallow executing KDE Partition Manager as root."
This reverts commit cfa53f6d3c
.
This commit is contained in:
parent
cfa53f6d3c
commit
d37c0ef9ce
17
src/main.cpp
17
src/main.cpp
|
@ -32,25 +32,10 @@
|
|||
#include <KMessageBox>
|
||||
#include <KLocalizedString>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef Q_OS_WIN
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <iostream>
|
||||
#include <config.h>
|
||||
|
||||
int Q_DECL_IMPORT main(int argc, char* argv[])
|
||||
{
|
||||
#ifndef Q_OS_WIN
|
||||
/**
|
||||
* Check whether we are running as root
|
||||
**/
|
||||
if (getuid() == 0) {
|
||||
std::cout << "Executing KDE Partition Manager as root is not possible." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
Kdelibs4ConfigMigrator migrate(QLatin1Literal("partitionmanager"));
|
||||
|
|
Loading…
Reference in New Issue