Refresh patches for kvpnc on Debian and Ubuntu

This resolves Bug 1531
pull/3/head
Slávek Banko 11 years ago
parent 08239218fe
commit 96cd6c807c

@ -14,16 +14,16 @@ index 7c45fcf..b933832 100644
} }
else else
{ {
-// if (getenv("USER") != "root") -// if (getenv("USER") != TQString("root"))
-// { -// {
-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); -// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
-// exit(0); -// exit(0);
-// } -// }
+ if (getenv("USER") != "root") + if (getenv("USER") != TQString("root"))
+ { + {
+ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); + KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
+ exit(0); + exit(0);
+ } + }
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -1,2 +1,2 @@
10_su-to-root_usage.diff # 10_su-to-root_usage.diff
13_add_kuser_issuperuser.diff 13_add_kuser_issuperuser.diff

@ -14,16 +14,16 @@ index 7c45fcf..b933832 100644
} }
else else
{ {
-// if (getenv("USER") != "root") -// if (getenv("USER") != TQString("root"))
-// { -// {
-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); -// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
-// exit(0); -// exit(0);
-// } -// }
+ if (getenv("USER") != "root") + if (getenv("USER") != TQString("root"))
+ { + {
+ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); + KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
+ exit(0); + exit(0);
+ } + }
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -1,2 +1,2 @@
10_su-to-root_usage.diff # 10_su-to-root_usage.diff
13_add_kuser_issuperuser.diff 13_add_kuser_issuperuser.diff

@ -14,16 +14,16 @@ index 7c45fcf..b933832 100644
} }
else else
{ {
-// if (getenv("USER") != "root") -// if (getenv("USER") != TQString("root"))
-// { -// {
-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); -// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
-// exit(0); -// exit(0);
-// } -// }
+ if (getenv("USER") != "root") + if (getenv("USER") != TQString("root"))
+ { + {
+ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); + KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
+ exit(0); + exit(0);
+ } + }
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -1,2 +1,2 @@
10_su-to-root_usage.diff # 10_su-to-root_usage.diff
13_add_kuser_issuperuser.diff 13_add_kuser_issuperuser.diff

@ -14,16 +14,16 @@ index 7c45fcf..b933832 100644
} }
else else
{ {
-// if (getenv("USER") != "root") -// if (getenv("USER") != TQString("root"))
-// { -// {
-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); -// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
-// exit(0); -// exit(0);
-// } -// }
+ if (getenv("USER") != "root") + if (getenv("USER") != TQString("root"))
+ { + {
+ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); + KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
+ exit(0); + exit(0);
+ } + }
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -1,2 +1,2 @@
10_su-to-root_usage.diff # 10_su-to-root_usage.diff
13_add_kuser_issuperuser.diff 13_add_kuser_issuperuser.diff

@ -14,16 +14,16 @@ index 7c45fcf..b933832 100644
} }
else else
{ {
-// if (getenv("USER") != "root") -// if (getenv("USER") != TQString("root"))
-// { -// {
-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); -// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
-// exit(0); -// exit(0);
-// } -// }
+ if (getenv("USER") != "root") + if (getenv("USER") != TQString("root"))
+ { + {
+ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); + KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
+ exit(0); + exit(0);
+ } + }
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -1,2 +1,2 @@
10_su-to-root_usage.diff # 10_su-to-root_usage.diff
13_add_kuser_issuperuser.diff 13_add_kuser_issuperuser.diff

@ -14,16 +14,16 @@ index 7c45fcf..b933832 100644
} }
else else
{ {
-// if (getenv("USER") != "root") -// if (getenv("USER") != TQString("root"))
-// { -// {
-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); -// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
-// exit(0); -// exit(0);
-// } -// }
+ if (getenv("USER") != "root") + if (getenv("USER") != TQString("root"))
+ { + {
+ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) ); + KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
+ exit(0); + exit(0);
+ } + }
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -1,2 +1,2 @@
10_su-to-root_usage.diff # 10_su-to-root_usage.diff
13_add_kuser_issuperuser.diff 13_add_kuser_issuperuser.diff

Loading…
Cancel
Save