Skip to content

Commit

Permalink
xpath BUGFIX full accessible tree for output xpath search
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Dec 15, 2023
1 parent e7cb334 commit 5357561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -9600,7 +9600,7 @@ lyxp_get_root_type(const struct lyd_node *ctx_node, const struct lysc_node *ctx_
/* schema */
for (op = ctx_scnode; op && !(op->nodetype & (LYS_RPC | LYS_ACTION | LYS_NOTIF)); op = op->parent) {}

if (op || (options & LYXP_SCNODE)) {
if (op || !(options & LYXP_SCNODE_SCHEMA)) {
/* general root that can access everything */
return LYXP_NODE_ROOT;
} else if (!ctx_scnode || (ctx_scnode->flags & LYS_CONFIG_W)) {
Expand Down

0 comments on commit 5357561

Please sign in to comment.