Currently the old_path_len argument is ignored in the implementation of path_symlink and the call to uv_fs_symlink uses the original null-terminated old_path, which differs to how the path_len arguments in other functions are treated.
This PR truncates the "old path" passed to libuv down to the length passed into old_path_len.
Currently the
old_path_len
argument is ignored in the implementation ofpath_symlink
and the call touv_fs_symlink
uses the original null-terminatedold_path
, which differs to how thepath_len
arguments in other functions are treated.This PR truncates the "old path" passed to libuv down to the length passed into
old_path_len
.