Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Fix another clang / HEAD bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Oct 1, 2013
1 parent bb92b1b commit 7c40e31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-qt4/pc-bootconfig/main.cpp
Expand Up @@ -4,6 +4,8 @@
#include <QMessageBox>
#include <QDebug>
#include "mainUI.h"
#include <unistd.h>
#include <sys/types.h>

#ifndef PREFIX
#define PREFIX QString("/usr/local/")
Expand All @@ -29,7 +31,7 @@ int main(int argc, char ** argv)
QObject::connect(&a, SIGNAL(messageReceived(const QString&)), &w, SLOT(slotSingleInstance()) );
w.show();
//Check for root
if (0 != geteuid())
if (0 != getuid())
{
QMessageBox msg;
msg.setText(w.tr("This application requires administrator privileges for operation."));
Expand Down

0 comments on commit 7c40e31

Please sign in to comment.