Clean up old KdeSudo strings

pull/1/head
Timothy Pearson 10 years ago
parent e46e5dfd9d
commit f67ba3f314

@ -1,5 +1,5 @@
Since 05/2007 Since 05/2007
The Kubuntu-KdeSudo team: The Kubuntu-TdeSudo team:
Martin Böhm <martin.bohm@kubuntu.org> Martin Böhm <martin.bohm@kubuntu.org>
Anthony Mercatante <tonio@ubuntu.com> Anthony Mercatante <tonio@ubuntu.com>
Juan Carlos Torres <carlosdgtorres@gmail.com> Juan Carlos Torres <carlosdgtorres@gmail.com>

@ -1,26 +1,26 @@
KdeSudo 2.5.1 TdeSudo 2.5.1
----------- -----------
* Fixed build issue with gcc 4.3.0 * Fixed build issue with gcc 4.3.0
Thanks to "big_gie" at archlinux for the patch Thanks to "big_gie" at archlinux for the patch
KdeSudo 2.5 TdeSudo 2.5
----------- -----------
* Fixed icon/name checking when starting an application by its full * Fixed icon/name checking when starting an application by its full
path path
* Fixed icon/name checking when using X-KDE-SubstituteUID * Fixed icon/name checking when using X-KDE-SubstituteUID
KdeSudo 2.4 TdeSudo 2.4
----------- -----------
* Deals correctly with antislashed quotes: * Deals correctly with antislashed quotes:
- Closes Launchpad #187053 - Closes Launchpad #187053
* Fixed segfault due to double pclose() usage. * Fixed segfault due to double pclose() usage.
KdeSudo 2.3 TdeSudo 2.3
----------- -----------
* Fixed -u option working randomly, due to missing pclose * Fixed -u option working randomly, due to missing pclose
call when creating the Xauthority file. call when creating the Xauthority file.
KdeSudo 2.2 TdeSudo 2.2
----------- -----------
* A little issue with nonewdcop option has been fixed, * A little issue with nonewdcop option has been fixed,
due to sudo removing some environment variables, causing due to sudo removing some environment variables, causing
@ -61,7 +61,7 @@ tdesudo 2.0
* Added support for -r and -p tdesu cmdline option, for "nice" support * Added support for -r and -p tdesu cmdline option, for "nice" support
* KdeSudo closes correctly after 3 bad passwords given * TdeSudo closes correctly after 3 bad passwords given
* Fixes kcm modules support * Fixes kcm modules support

@ -16,8 +16,8 @@ msgstr ""
"X-Generator: KBabel 1.11.4\n" "X-Generator: KBabel 1.11.4\n"
#: main.cpp:27 main.cpp:44 #: main.cpp:27 main.cpp:44
msgid "KdeSudo" msgid "TdeSudo"
msgstr "KdeSudo" msgstr "TdeSudo"
#: main.cpp:33 #: main.cpp:33
msgid "sets a runas user" msgid "sets a runas user"
@ -35,11 +35,11 @@ msgstr "Commentaire à afficher dans la boite de dialogue"
msgid "" msgid ""
"No command arguments supplied!\n" "No command arguments supplied!\n"
"Usage: tdesudo [-u <runas>] <command>\n" "Usage: tdesudo [-u <runas>] <command>\n"
"KdeSudo will now exit..." "TdeSudo will now exit..."
msgstr "" msgstr ""
"Aucune commande spécifiée en argument!\n" "Aucune commande spécifiée en argument!\n"
"Utilisation: tdesudo [-u <runas>] <command>\n" "Utilisation: tdesudo [-u <runas>] <command>\n"
"KdeSudo va maintenant se fermer..." "TdeSudo va maintenant se fermer..."
#: tdesudo.cpp:28 #: tdesudo.cpp:28
msgid "" msgid ""

@ -52,7 +52,7 @@ static TDECmdLineOptions options[] =
{ "p <priority>", I18N_NOOP("Process priority, between 0 and 100, 0 the lowest [50]"), 0}, { "p <priority>", I18N_NOOP("Process priority, between 0 and 100, 0 the lowest [50]"), 0},
{ "r", I18N_NOOP("Use realtime scheduling"), 0}, { "r", I18N_NOOP("Use realtime scheduling"), 0},
{ "f <file>", I18N_NOOP("Use target UID if <file> is not writeable"), 0}, { "f <file>", I18N_NOOP("Use target UID if <file> is not writeable"), 0},
{ "t", I18N_NOOP("Fake option for TDE's KdeSu compatibility"), 0 }, { "t", I18N_NOOP("Fake option for TDE's TdeSu compatibility"), 0 },
{ "n", I18N_NOOP("Do not keep password"), 0}, { "n", I18N_NOOP("Do not keep password"), 0},
{ "nonewdcop", I18N_NOOP("Use existing DCOP server"), 0}, { "nonewdcop", I18N_NOOP("Use existing DCOP server"), 0},
{ "comment <dialog text>", I18N_NOOP("The comment that should be displayed in the dialog"), 0}, { "comment <dialog text>", I18N_NOOP("The comment that should be displayed in the dialog"), 0},
@ -63,7 +63,7 @@ static TDECmdLineOptions options[] =
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
TDEAboutData aboutData("tdesudo", I18N_NOOP("KdeSudo"), TDEAboutData aboutData("tdesudo", I18N_NOOP("TdeSudo"),
VERSION, description, TDEAboutData::License_GPL, VERSION, description, TDEAboutData::License_GPL,
"(c) 2007-2008, Anthony Mercatante", 0, 0, "tonio@ubuntu.com"); "(c) 2007-2008, Anthony Mercatante", 0, 0, "tonio@ubuntu.com");
aboutData.addAuthor("Robert Gruber",0, "rgruber@users.sourceforge.net"); aboutData.addAuthor("Robert Gruber",0, "rgruber@users.sourceforge.net");
@ -138,7 +138,7 @@ int main(int argc, char **argv)
else else
name = executable; name = executable;
KdeSudo *tdesudo = new KdeSudo(0,0,icon,name,withIgnoreButton); TdeSudo *tdesudo = new TdeSudo(0,0,icon,name,withIgnoreButton);
a.setMainWidget(tdesudo); a.setMainWidget(tdesudo);
args->clear(); args->clear();

@ -44,7 +44,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
KdeSudo::KdeSudo(TQWidget *parent, const char *name,const TQString& icon, const TQString& generic, bool withIgnoreButton) TdeSudo::TdeSudo(TQWidget *parent, const char *name,const TQString& icon, const TQString& generic, bool withIgnoreButton)
: KPasswordDialog(KPasswordDialog::Password, false, false, icon, parent, name) : KPasswordDialog(KPasswordDialog::Password, false, false, icon, parent, name)
{ {
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
@ -72,7 +72,7 @@ KdeSudo::KdeSudo(TQWidget *parent, const char *name,const TQString& icon, const
!(!args->isSet("c") && args->count()) && !(!args->isSet("c") && args->count()) &&
!args->isSet("s")) !args->isSet("s"))
{ {
KMessageBox::information(NULL, i18n("No command arguments supplied!\nUsage: tdesudo [-u <runas>] <command>\nKdeSudo will now exit...")); KMessageBox::information(NULL, i18n("No command arguments supplied!\nUsage: tdesudo [-u <runas>] <command>\nTdeSudo will now exit..."));
noExec = true; noExec = true;
} }
@ -323,11 +323,11 @@ KdeSudo::KdeSudo(TQWidget *parent, const char *name,const TQString& icon, const
p->start( TDEProcess::NotifyOnExit, TDEProcess::All ); p->start( TDEProcess::NotifyOnExit, TDEProcess::All );
} }
KdeSudo::~KdeSudo() TdeSudo::~TdeSudo()
{ {
} }
void KdeSudo::receivedOut(TDEProcess*, char*buffer, int buflen) void TdeSudo::receivedOut(TDEProcess*, char*buffer, int buflen)
{ {
char *pcTmp= new char[buflen+1]; char *pcTmp= new char[buflen+1];
strncpy(pcTmp,buffer,buflen); strncpy(pcTmp,buffer,buflen);
@ -385,7 +385,7 @@ void KdeSudo::receivedOut(TDEProcess*, char*buffer, int buflen)
} }
} }
void KdeSudo::procExited(TDEProcess*) void TdeSudo::procExited(TDEProcess*)
{ {
if (!keepPwd && unCleaned) if (!keepPwd && unCleaned)
{ {
@ -406,7 +406,7 @@ void KdeSudo::procExited(TDEProcess*)
} }
} }
void KdeSudo::slotOk() void TdeSudo::slotOk()
{ {
TQString strTmp(password()); TQString strTmp(password());
strTmp+="\n"; strTmp+="\n";
@ -414,19 +414,19 @@ void KdeSudo::slotOk()
this->hide(); this->hide();
} }
void KdeSudo::slotUser1() void TdeSudo::slotUser1()
{ {
done(AsUser); done(AsUser);
} }
void KdeSudo::blockSigChild() void TdeSudo::blockSigChild()
{ {
sigset_t sset; sigset_t sset;
sigemptyset(&sset); sigemptyset(&sset);
sigaddset(&sset, SIGCHLD); sigaddset(&sset, SIGCHLD);
sigprocmask(SIG_BLOCK, &sset, 0L); sigprocmask(SIG_BLOCK, &sset, 0L);
} }
void KdeSudo::unblockSigChild() void TdeSudo::unblockSigChild()
{ {
sigset_t sset; sigset_t sset;
sigemptyset(&sset); sigemptyset(&sset);
@ -434,7 +434,7 @@ void KdeSudo::unblockSigChild()
sigprocmask(SIG_UNBLOCK, &sset, 0L); sigprocmask(SIG_UNBLOCK, &sset, 0L);
} }
TQString KdeSudo::validArg(TQString arg) TQString TdeSudo::validArg(TQString arg)
{ {
TQChar firstChar = arg.at(0); TQChar firstChar = arg.at(0);
TQChar lastChar = arg.at(arg.length() - 1); TQChar lastChar = arg.at(arg.length() - 1);

@ -34,7 +34,7 @@
class KCookie; class KCookie;
/* /*
* KdeSudo is the base class of the project * TdeSudo is the base class of the project
* *
* It inherits KPasswordDialog and overrrides the * It inherits KPasswordDialog and overrrides the
* slot slotOK() * slot slotOK()
@ -43,7 +43,7 @@ class KCookie;
* @version 2.4 * @version 2.4
*/ */
class KdeSudo : public KPasswordDialog class TdeSudo : public KPasswordDialog
{ {
Q_OBJECT Q_OBJECT
@ -52,12 +52,12 @@ public:
/* /*
* Default construtor * Default construtor
*/ */
KdeSudo(TQWidget* parent=0, const char *name=0, const TQString& icon=TQString(), const TQString& generic=TQString(), bool withIgnoreButton=false); TdeSudo(TQWidget* parent=0, const char *name=0, const TQString& icon=TQString(), const TQString& generic=TQString(), bool withIgnoreButton=false);
/* /*
* Default destructor * Default destructor
*/ */
~KdeSudo(); ~TdeSudo();
enum ResultCodes { AsUser = 10 }; enum ResultCodes { AsUser = 10 };
public slots: // Public slots public slots: // Public slots

Loading…
Cancel
Save