[PC-BSD Commits] r18433 - pcbsd/current/src-qt4/pc-pfmanager
svn at pcbsd.org
svn at pcbsd.org
Tue Aug 14 06:09:56 PDT 2012
Author: kris
Date: 2012-08-14 13:09:56 +0000 (Tue, 14 Aug 2012)
New Revision: 18433
Modified:
pcbsd/current/src-qt4/pc-pfmanager/main.cpp
Log:
Fix pfmanager to check if uid == 0
Modified: pcbsd/current/src-qt4/pc-pfmanager/main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-pfmanager/main.cpp 2012-08-14 09:18:04 UTC (rev 18432)
+++ pcbsd/current/src-qt4/pc-pfmanager/main.cpp 2012-08-14 13:09:56 UTC (rev 18433)
@@ -20,6 +20,13 @@
app.installTranslator( &translator );
qDebug() << "Locale:" << langCode;
+ // Make sure we are running as root
+ if (getuid() != 0) {
+ qDebug("Error, needs to be run as root");
+ exit(1);
+ }
+
+
PFManagerDlg wnd;
wnd.load();
More information about the Commits
mailing list