celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject [1/3] celix git commit: CELIX-272: Remove secure_getenv usage for BSD/APPLE
Date Tue, 17 Nov 2015 09:16:34 GMT
Repository: celix
Updated Branches:
  refs/heads/feature/CELIX-272_synchronization_service_registry 03da4ec92 -> 530b4f72d


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/feature/CELIX-272_synchronization_service_registry
Commit: cf7acae85a859ca39c7ebccc9e9b16004742dc4c
Parents: 03da4ec
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Tue Nov 17 10:14:26 2015 +0100
Committer: Pepijn Noltes <pepijnnoltes@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;


Mime
View raw message