Restconf: include -E configdir when starting restconf daemon

This commit is contained in:
Olof hagsand 2025-02-17 10:46:38 +01:00
parent 9df084958e
commit 18c29f018a
2 changed files with 14 additions and 1 deletions

View file

@ -676,7 +676,14 @@ restconf_clixon_backend(clixon_handle h,
clicon_session_id_set(h, id);
break;
}
if ((nsc = xml_nsctx_init(NULL, CLIXON_RESTCONF_NS)) == NULL)
if ((nsc = xml_nsctx_init(NULL,
/* XXX HARDCODED NAMESPACE NEEDS GENERIC MECHANISM */
#if 1
"http://clicon.org/controller"
#else
CLIXON_RESTCONF_NS
#endif
)) == NULL)
goto done;
if ((pw = getpwuid(getuid())) == NULL){
clixon_err(OE_UNIX, errno, "getpwuid");