restricted NACM recovery user

This commit is contained in:
Olof hagsand 2020-08-06 21:43:27 +02:00
parent 5c3f18c2da
commit a7737c283c
7 changed files with 126 additions and 99 deletions

View file

@ -217,7 +217,7 @@ startup_common(clicon_handle h,
/* Print upgraded db: -q backend switch */
if (clicon_quit_upgrade_get(h) == 1){
/* bind yang */
if (ret = (xml_bind_yang(xt, YB_MODULE, yspec, &xret) < 1)){
if ((ret = (xml_bind_yang(xt, YB_MODULE, yspec, &xret)) < 1)){
if (ret == 0){
/* invalid */
clicon_err(OE_XML, EFAULT, "invalid configuration");