diff --git a/Unix/base/messagesprint.c b/Unix/base/messagesprint.c index b28649e0..fb81b5e1 100644 --- a/Unix/base/messagesprint.c +++ b/Unix/base/messagesprint.c @@ -724,7 +724,6 @@ void PamCheckUserReq_Print( {"tag", FT_UINT32, offsetof(Self, base.tag)}, {"operationId", FT_UINT64, offsetof(Self, base.operationId)}, {"user", FT_STRING, offsetof(Self, user)}, - {"password", FT_STRING, offsetof(Self, passwd)}, {"handle", FT_UINT64, offsetof(Self, handle)}, {NULL, 0, 0}, }; diff --git a/Unix/http/http.c b/Unix/http/http.c index 4a481bfa..40ac55a3 100644 --- a/Unix/http/http.c +++ b/Unix/http/http.c @@ -405,42 +405,45 @@ static MI_Result _Sock_WriteAux( return MI_RESULT_FAILED; } -void _WriteTraceFile(PathID id, const void* data, size_t size) +void _WriteTraceFile(PathID id, const void *data, size_t size) { + if (FORCE_TRACING) + { #ifdef CONFIG_POSIX - static pthread_mutex_t s_mutex = PTHREAD_MUTEX_INITIALIZER; + static pthread_mutex_t s_mutex = PTHREAD_MUTEX_INITIALIZER; #else - /* TODO: How to synchronize logging */ + /* TODO: How to synchronize logging */ #endif - const char* path; + const char *path; - if (!(path = OMI_GetPath(id))) - return; + if (!(path = OMI_GetPath(id))) + return; #ifdef CONFIG_POSIX - pthread_mutex_lock(&s_mutex); + pthread_mutex_lock(&s_mutex); #else - /* TODO: How to synchronize logging */ + /* TODO: How to synchronize logging */ #endif - { - FILE* out = fopen(path, "a"); - - if (out) { - fwrite(data, 1, size, out); - fwrite("\n", 1, 1, out); - fclose(out); - } - else - { - trace_CannotOpenHttptraceFile(path, errno); + FILE *out = fopen(path, "a"); + + if (out) + { + fwrite(data, 1, size, out); + fwrite("\n", 1, 1, out); + fclose(out); + } + else + { + trace_CannotOpenHttptraceFile(path, errno); + } } - } #ifdef CONFIG_POSIX - pthread_mutex_unlock(&s_mutex); + pthread_mutex_unlock(&s_mutex); #else - /* TODO: How to synchronize logging */ + /* TODO: How to synchronize logging */ #endif + } } INLINE MI_Result _Sock_Read( diff --git a/Unix/http/httpclient.c b/Unix/http/httpclient.c index 81ee562a..722145d8 100644 --- a/Unix/http/httpclient.c +++ b/Unix/http/httpclient.c @@ -28,7 +28,7 @@ #include "sessionmap.h" #define ENABLE_TRACING 1 -#define FORCE_TRACING 1 +#define FORCE_TRACING 0 #ifndef CONFIG_POSIX /* ssl not supported in this configuration; just make compiler happy */ diff --git a/Unix/http/httpclientauth.c b/Unix/http/httpclientauth.c index cab874f2..1fdecb03 100644 --- a/Unix/http/httpclientauth.c +++ b/Unix/http/httpclientauth.c @@ -36,7 +36,7 @@ //#define GSS_USE_IOV 1 #define ENABLE_TRACING 1 -#define FORCE_TRACING 1 +#define FORCE_TRACING 0 #if GSS_USE_IOV && !defined(macos) #include "httpkrb5.h" diff --git a/Unix/http/sessionmap.c b/Unix/http/sessionmap.c index 4e072ba7..cc7d0910 100644 --- a/Unix/http/sessionmap.c +++ b/Unix/http/sessionmap.c @@ -4,7 +4,7 @@ #include #define ENABLE_TRACING 1 -#define FORCE_TRACING 1 +#define FORCE_TRACING 0 #ifdef ENABLE_TRACING # define TRACING_LEVEL 4 diff --git a/Unix/installbuilder/datafiles/Base_OMI.data b/Unix/installbuilder/datafiles/Base_OMI.data index 4f6eb4c7..0139f3d3 100644 --- a/Unix/installbuilder/datafiles/Base_OMI.data +++ b/Unix/installbuilder/datafiles/Base_OMI.data @@ -561,7 +561,10 @@ chown omi:omi /etc/opt/omi/.creds >/dev/null 2>&1 chown omi:omi /etc/opt/omi/.creds/ntlm >/dev/null 2>&1 chown omi:omi /etc/opt/omi/conf/sockets chmod 700 /etc/opt/omi/conf/sockets - +rm -f /var/opt/omi/log/omiserver-send.trc >/dev/null 2>&1 +rm -f /var/opt/omi/log/omiserver-recv.trc >/dev/null 2>&1 +rm -f /var/opt/omi/log/omiclient-send.trc >/dev/null 2>&1 +rm -f /var/opt/omi/log/omiclient-recv.trc >/dev/null 2>&1 # Fix potential permissons issue on /etc/opt/omi directory chown root:${{ROOT_GROUP_NAME}} /etc/opt/omi diff --git a/Unix/installbuilder/datafiles/Linux.data b/Unix/installbuilder/datafiles/Linux.data index c0cb9ab1..d0c8a9c3 100644 --- a/Unix/installbuilder/datafiles/Linux.data +++ b/Unix/installbuilder/datafiles/Linux.data @@ -303,7 +303,7 @@ if ${{PERFORMING_UPGRADE_NOT}}; then egrep -q "^omi:" /etc/passwd if [ $? -eq 0 ]; then echo "Deleting omi service account ..." - userdel omi + userdel -f omi fi egrep -q "^omi:" /etc/group if [ $? -eq 0 ]; then