clearenv not portable
Bug #999714 reported by
reed
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Light Display Manager |
Fix Released
|
Medium
|
Matt Fischer |
Bug Description
lightdm-process.o: In function `process_run':
process.
Here is my patch but untested:
$NetBSD$
--- src/process.c.orig 2012-05-14 19:24:13.000000000 -0500
+++ src/process.c 2012-05-14 19:28:56.000000000 -0500
@@ -158,7 +158,11 @@
}
if (process-
+#ifdef HAVE_CLEARENV
clearenv ();
+#else
+ putenv ("environ=NULL");
+#endif
g_
while (g_hash_
Note that configure.ac will need to check for clearenv and config.h.in setup to get the HAVE_CLEARENV set.
Changed in lightdm: | |
assignee: | nobody → Matt Fischer (mfisch) |
status: | Triaged → In Progress |
To post a comment you must log in.
Confirmed. According to the man page I think the change should be:
#ifdef HAVE_CLEARENV
clearenv ();
#else
environ = NULL;
#endif