You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2015/11/17 12:57:50 UTC

[33/38] celix git commit: CELIX-272: Remove secure_getenv usage for BSD/APPLE

CELIX-272: Remove secure_getenv usage for BSD/APPLE


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/cf7acae8
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/cf7acae8
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/cf7acae8

Branch: refs/heads/develop
Commit: cf7acae85a859ca39c7ebccc9e9b16004742dc4c
Parents: 03da4ec
Author: Pepijn Noltes <pe...@gmail.com>
Authored: Tue Nov 17 10:14:26 2015 +0100
Committer: Pepijn Noltes <pe...@gmail.com>
Committed: Tue Nov 17 10:14:26 2015 +0100

----------------------------------------------------------------------
 dependency_manager/private/src/dm_shell_list_command.c | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/cf7acae8/dependency_manager/private/src/dm_shell_list_command.c
----------------------------------------------------------------------
diff --git a/dependency_manager/private/src/dm_shell_list_command.c b/dependency_manager/private/src/dm_shell_list_command.c
index ed2c5f0..e174061 100644
--- a/dependency_manager/private/src/dm_shell_list_command.c
+++ b/dependency_manager/private/src/dm_shell_list_command.c
@@ -43,7 +43,11 @@ void dmListCommand_execute(bundle_context_pt context, char * line, FILE *out, FI
     array_list_pt servRefs = NULL;
     int i;
     bundleContext_getServiceReferences(context, DM_INFO_SERVICE_NAME ,NULL, &servRefs);
+#if defined(BSD) || defined(__APPLE__)
+    char *term = getenv("TERM");
+#else
     char *term = secure_getenv("TERM");
+#endif
     bool colors = false;
     if (strcmp("xterm-256color", term) == 0) {
         colors = true;