Research and fix link() return errno
completed by: Przemysław Buczkowski
mentors: Philippe Saint-Pierre, Jérôme Duval, Siarzhuk Zharski
This task is to research and implement a correct fix for link() so that it returns the proper errno.
https://dev.haiku-os.org/ticket/8770