Skip to content

Commit

Permalink
Fix bug in recursion case in OpamSystem.mk_temp_dir
Browse files Browse the repository at this point in the history
The ~prefix argument wasn't passed when recursing.
  • Loading branch information
dra27 committed Jun 9, 2024
1 parent 3dbe20a commit cecb9de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/opamSystem.ml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ let temp_basename prefix =
let rec mk_temp_dir ?(prefix="opam") () =
let s = Filename.get_temp_dir_name () / temp_basename prefix in
if Sys.file_exists s then
mk_temp_dir ()
mk_temp_dir ~prefix ()
else
real_path s
else
real_path s

Expand Down

0 comments on commit cecb9de

Please sign in to comment.