Commit 484c112
committed
session_client: fix user searchpath for unix/fd transports
The nc_session_new_ctx() function creates a fresh libyang context
(unless an explicit context has been provided) and initializes the
context search dirs with the user search path (if set) and
NC_SCHEMAS_DIR.
This function is only called for the SSH and TLS transports. Making the
user searchpath ignored when using the UNIX and FD transports. Call it
for all transports.
Fixes: fd5b668 ("client CHANGE rewrite loading the schemas into context when connecting to a server")
Fixes: ac7fa2f ("add support for unix socket transport")
Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>1 parent 373a40a commit 484c112
1 file changed
Lines changed: 6 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
| 1101 | + | |
| 1102 | + | |
1111 | 1103 | | |
1112 | | - | |
| 1104 | + | |
1113 | 1105 | | |
1114 | 1106 | | |
1115 | 1107 | | |
| |||
1182 | 1174 | | |
1183 | 1175 | | |
1184 | 1176 | | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
| 1177 | + | |
| 1178 | + | |
1195 | 1179 | | |
1196 | | - | |
| 1180 | + | |
1197 | 1181 | | |
1198 | 1182 | | |
1199 | 1183 | | |
| |||
0 commit comments