Skip to content

Commit 5357561

Browse files
committed
xpath BUGFIX full accessible tree for output xpath search
1 parent e7cb334 commit 5357561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9600,7 +9600,7 @@ lyxp_get_root_type(const struct lyd_node *ctx_node, const struct lysc_node *ctx_
96009600
/* schema */
96019601
for (op = ctx_scnode; op && !(op->nodetype & (LYS_RPC | LYS_ACTION | LYS_NOTIF)); op = op->parent) {}
96029602

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

0 commit comments

Comments
 (0)