aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.h
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2014-05-16 15:43:55 -0500
committerPeter Seebach <peter.seebach@windriver.com>2014-05-16 15:43:55 -0500
commitc9890aca3a3045e53bb9b7754c80f7ded51e65f6 (patch)
tree367fd4e3e34aefb36a1b188def698244ba83b0d0 /pseudo.h
parentbec11654de69611ae6088d3aaa4a8d6f40265603 (diff)
downloadpseudo-c9890aca3a3045e53bb9b7754c80f7ded51e65f6.tar.gz
pseudo-c9890aca3a3045e53bb9b7754c80f7ded51e65f6.tar.bz2
pseudo-c9890aca3a3045e53bb9b7754c80f7ded51e65f6.zip
pseudo_has_unload: add function
Various wrappers checked for a non-null pseudo_get_value("PSEUDO_UNLOAD") to determine whether the environment should include the pseudo variables. None of those checks freed the returned value when it was not null. The new check function does. The new check function also sees whether PSEUDO_UNLOAD was defined in the environment that should be used in the wrapped system call. This allows pkg_postinst scripts to strip out the LD_PRELOAD setting, for example before invoking qemu to execute commands in an environment that does not have libpseudo.so. [YOCTO #4843] Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Diffstat (limited to 'pseudo.h')
-rw-r--r--pseudo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pseudo.h b/pseudo.h
index 62678b7..92020e4 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -28,6 +28,7 @@ extern void pseudo_init_client(void);
void pseudo_dump_env(char **envp);
int pseudo_set_value(const char *key, const char *value);
char *pseudo_get_value(const char *key);
+int pseudo_has_unload(char * const *envp);
#include "pseudo_tables.h"