diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 16:13:23 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 16:13:23 -0500 |
commit | 05a59ddb0228494ba27bacbe7d391f06725b0689 (patch) | |
tree | 7c028104ac86c3b1e43ea3584528939bd8802426 /debian/wheezy/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff | |
parent | a3210d42cfc1a2eb722dd85b0ddac0a2177f26ab (diff) | |
download | tde-packaging-05a59ddb0228494ba27bacbe7d391f06725b0689.tar.gz tde-packaging-05a59ddb0228494ba27bacbe7d391f06725b0689.zip |
Split wheezy off of squeeze
Diffstat (limited to 'debian/wheezy/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff')
-rw-r--r-- | debian/wheezy/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/wheezy/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff b/debian/wheezy/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff new file mode 100644 index 000000000..70fd0192e --- /dev/null +++ b/debian/wheezy/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff @@ -0,0 +1,29 @@ +diff --git a/src/main.cpp b/src/main.cpp +index 7c45fcf..b933832 100644 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -24,6 +24,7 @@ + #include <kmessagebox.h> + #include <kmainwindow.h> + #include <kapp.h> ++#include <kuser.h> + + #include <klocale.h> + #include <dcopclient.h> +@@ -134,11 +135,11 @@ int main ( int argc, char *argv[] ) + } + else + { +-// if (getenv("USER") != "root") +-// { +-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); +-// exit(0); +-// } ++ if (getenv("USER") != "root") ++ { ++ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); ++ exit(0); ++ } + + KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + |