Opened 7 years ago

Closed 7 years ago

#8770 closed bug (fixed)

link() return errno

Reported by: scottmc Owned by: nobody
Priority: normal Milestone: R1
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

Currently Haiku's link() returns B_UNSUPPORTED, it has been suggested that the proper return result should instead be EPERM. See discussion here: http://comments.gmane.org/gmane.os.haiku.ports.devel/1475

Attachments (1)

commit-562e46b-1143406443.diff (1.3 KB ) - added by przemub 7 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by jstressman, 7 years ago

Adding myself to this ticket so that I can update the fontconfig port if need be, if/when this gets fixed.

comment:2 by scottmc, 7 years ago

Version: R1/alpha3R1/Development

comment:3 by scottmc, 7 years ago

Milestone: R1/alpha4R1

by przemub, 7 years ago

comment:4 by przemub, 7 years ago

Has a Patch: set

comment:5 by axeld, 7 years ago

Thanks for the patch! It does a bit too much, though: most mappings are not necessary, as, for example EROFS and B_READ_ONLY_DEVICE, and most of the others resolve exactly to the same value.

The other error codes are the ones expected from file system drivers, so only EPERM should be mapped the way you did it.

comment:6 by korli, 7 years ago

Resolution: fixed
Status: newclosed

Edited by myself and applied in hrev45172. Thanks!

Note: See TracTickets for help on using tickets.