fix errno error

Signed-off-by: Xavier Roche <opendev.os@gmail.com>