Ack,
Mathi.

----- osafde...@gmail.com wrote:

> osaf/services/saf/amf/amfnd/compdb.cc |  4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> 
> Component fails to instantiate, typical syslog:
> Feb  7 16:31:25 Vostro osafamfnd[19923]:
> ncs_os_process_execute_timed:
>     execvp '/amf_demo_script' failed - No such file or directory
> 
> If the saAmfCtRelPathInstantiateCmd attribute starts with a "/" the
> path prefix
> from the possibly corresponding SaAmfNodeSwBundle instance is ignored
> thus
> creating an invalid path.
> 
> We change amfnd to always prepend the command with the path prefix if
> it exist.
> 
> diff --git a/osaf/services/saf/amf/amfnd/compdb.cc
> b/osaf/services/saf/amf/amfnd/compdb.cc
> --- a/osaf/services/saf/amf/amfnd/compdb.cc
> +++ b/osaf/services/saf/amf/amfnd/compdb.cc
> @@ -1219,8 +1219,8 @@ static void init_clc_cli_command(AVND_CO
>       int i, j;
>       const char *argv;
>  
> -     // prepend with path prefix (from saAmfNodeSwBundlePathPrefix) if
> needed
> -     if (clc_cmd[0] == '/')
> +     // prepend with path prefix if available
> +     if (path_prefix == NULL)
>               i = snprintf(buf, sizeof(cmd->cmd), "%s", clc_cmd);
>       else
>               i = snprintf(buf, sizeof(cmd->cmd), "%s/%s",    path_prefix, 
> clc_cmd);

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&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