Fix errno after reporting change
Fix errno after reporting change

CodethinkLabs/online-atomic-update,CodethinkLabs/online-atomic-update,CodethinkLabs/live-atomic-update,CodethinkLabs/live-atomic-update