Skip to content

Commit b3f6f0a

Browse files
authored
Merge pull request #23 from andyhhp/main
Fix path handling when loading the plugins
2 parents bbdbfd8 + 11ef6b3 commit b3f6f0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

oxenstored/domains.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ let () =
3838
(* Do not link with the plugin when being tested *)
3939
if not Testing_status.under_testing then (
4040
let plugins_dir =
41-
Filename.concat Paths.libexec "/ocaml/xsd_glue/xenctrl_plugin/"
41+
Filename.concat Paths.libexec "ocaml/xsd_glue/xenctrl_plugin"
4242
in
43-
let filepath = plugins_dir ^ "domain_getinfo_v1.cmxs" in
43+
let filepath = Filename.concat plugins_dir "domain_getinfo_v1.cmxs" in
4444
debug "Trying to load plugin '%s'\n%!" filepath ;
4545
let list_files = Sys.readdir plugins_dir in
4646
debug "Directory listing of '%s'\n%!" plugins_dir ;

0 commit comments

Comments
 (0)