You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I learned that, in Windows, BOOL and BOOLEAN are not the same thing, and that CreateHardLink returns one, while CreateSymbolicLink returns the other.
Damien, you did not include this bugfix in the Changelog, I assume that this is because symlink support on Windows is a new feature and users of released versions only will not be able to observe the change. If I'm wrong on that, you should add a Change entry.
Original bug ID: 7217
Reporter: furuse
Assigned to: @damiendoligez
Status: closed (set by @xavierleroy on 2017-09-24T15:32:17Z)
Resolution: fixed
Priority: urgent
Severity: block
Platform: MinGW OCaml
Version: 4.02.3
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: otherlibs
Monitored by: @gasche @hcarty
Bug description
The following code succeeds w/o creating a symlink, in MinGW OCaml 4.03.0+beta2 w/o Admin right:
let () =
Printf.printf "has_symlink=%b\n" @@ Unix.has_symlink (); (* says false )
let oc = open_out "z" in
output_string oc "hello";
close_out oc;
Unix.symlink "z" "zz"; ( succeeds but no symlink is created *)
print_endline "done"
The function must raise an exception at failure!
The text was updated successfully, but these errors were encountered: