Correct errno to result translation

Merged Mark Andrews requested to merge 884-patches-to-review-v9_12 into v9_12

Merge request reports