summaryrefslogtreecommitdiffstats
path: root/kdmlib/kdmtsak.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 02:28:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 02:28:57 -0600
commit7574a7287e2e121c9d5c91a5f4ea38c5b3ae2a04 (patch)
treeb7c6396f4f7fe78dcd49424bff707e977541de18 /kdmlib/kdmtsak.h
parent66c0fa70796c1989a9f3adb0c5c0ad799ade48ca (diff)
downloadtdebase-7574a7287e2e121c9d5c91a5f4ea38c5b3ae2a04.tar.gz
tdebase-7574a7287e2e121c9d5c91a5f4ea38c5b3ae2a04.zip
Additional kde to tde renaming
Diffstat (limited to 'kdmlib/kdmtsak.h')
-rw-r--r--kdmlib/kdmtsak.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/kdmlib/kdmtsak.h b/kdmlib/kdmtsak.h
index c9664ae34..9c512a59b 100644
--- a/kdmlib/kdmtsak.h
+++ b/kdmlib/kdmtsak.h
@@ -80,48 +80,48 @@ inline int tde_sak_verify_calling_process()
if ((procparent == "kdesktop") || (procparent == "kdesktop_lock") || (procparent == "kdm")) {
authorized = true;
}
- else if (procparent == "kdeinit") {
- printf("kdeinit detected\n\r");
+ else if (procparent == "tdeinit") {
+ printf("tdeinit detected\n\r");
// A bit more digging is needed to see if this is an authorized process or not
- // Get the kdeinit command
- char kdeinitcmdline[8192];
+ // Get the tdeinit command
+ char tdeinitcmdline[8192];
FILE *fp = fopen(TQString("/proc/%1/cmdline").arg(parentproc).ascii(),"r");
if (fp != NULL) {
- if (fgets (kdeinitcmdline, 8192, fp) != NULL)
+ if (fgets (tdeinitcmdline, 8192, fp) != NULL)
fclose (fp);
}
- kdeinitcmdline[8191] = 0;
- TQString kdeinitCommand = kdeinitcmdline;
+ tdeinitcmdline[8191] = 0;
+ TQString tdeinitCommand = tdeinitcmdline;
// Also get the environment, specifically the path
- TQString kdeinitEnvironment;
- char kdeinitenviron[8192];
+ TQString tdeinitEnvironment;
+ char tdeinitenviron[8192];
fp = fopen(TQString("/proc/%1/environ").arg(parentproc).ascii(),"r");
if (fp != NULL) {
int c;
int pos = 0;
do {
c = fgetc(fp);
- kdeinitenviron[pos] = c;
+ tdeinitenviron[pos] = c;
pos++;
if (c == 0) {
- TQString curEnvLine = kdeinitenviron;
+ TQString curEnvLine = tdeinitenviron;
if (curEnvLine.startsWith("PATH=")) {
- kdeinitEnvironment = curEnvLine.mid(5);
+ tdeinitEnvironment = curEnvLine.mid(5);
}
pos = 0;
}
} while ((c != EOF) && (pos < 8192));
fclose (fp);
}
- kdeinitenviron[8191] = 0;
+ tdeinitenviron[8191] = 0;
#ifdef DEBUG
- printf("Called executable name is: %s\n\r", kdeinitCommand.ascii());
- printf("Environment is: %s\n\r", kdeinitEnvironment.ascii());
+ printf("Called executable name is: %s\n\r", tdeinitCommand.ascii());
+ printf("Environment is: %s\n\r", tdeinitEnvironment.ascii());
#endif
- if ((kdeinitCommand == "kdesktop [kdeinit]") && (kdeinitEnvironment.startsWith(KDE_BINDIR))) {
+ if ((tdeinitCommand == "kdesktop [tdeinit]") && (tdeinitEnvironment.startsWith(KDE_BINDIR))) {
authorized = true;
}
else {