osaf/services/saf/logsv/lgs/lgs_imm.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Fix updating of lgs_cb when logRootDirectory is check pointed.

diff --git a/osaf/services/saf/logsv/lgs/lgs_imm.c 
b/osaf/services/saf/logsv/lgs/lgs_imm.c
--- a/osaf/services/saf/logsv/lgs/lgs_imm.c
+++ b/osaf/services/saf/logsv/lgs/lgs_imm.c
@@ -1128,7 +1128,7 @@ void logRootDirectory_filemove(const cha
        }
 
        /* Create new files at new path */
-       strcpy((char *) lgs_cb->logsv_root_dir, new_logRootDirectory);
+       lgs_imm_rootpathconf_set(new_logRootDirectory);
        stream = log_stream_getnext_by_name(NULL);
        while (stream != NULL) {
                if (lgs_create_config_file_h(stream) != 0) {
@@ -2074,6 +2074,7 @@ void lgs_imm_rootpathconf_set(const char
                osafassert(0);
        
        strcpy(lgs_conf->logRootDirectory, root_path_str);
+       strcpy((char *) lgs_cb->logsv_root_dir, root_path_str);
        LOG_NO("lgsv root path is changed to 
\"%s\"",lgs_conf->logRootDirectory);
 }
 

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to