kdelibs/kdelibs-3.5.7-rh#244065.patch

27 lines
741 B
Diff

--- branches/KDE/3.5/kdelibs/kinit/setproctitle.cpp 2005/07/26 18:54:59 438982
+++ branches/KDE/3.5/kdelibs/kinit/setproctitle.cpp 2007/08/10 18:22:59 698691
@@ -173,6 +173,15 @@
else
continue;
}
+
+ /*
+ * On linux, we don't want to reuse the memory allocated for
+ * the environment, as there are tools that try to read our environment
+ * variables while we're running (ConsoleKit does that).
+ * There is no way to move or resize it, so just not touchint it
+ * seems to be the only option
+ */
+#ifndef __linux__
for (i=0; envp[i] != NULL; i++)
{
if (LastArgv + 1 == envp[i])
@@ -180,6 +189,7 @@
else
continue;
}
+#endif
}
#if SPT_TYPE != SPT_BUILTIN