The bug was that in case of an error, e.g. "operation not permitted", the error was not logged and the errcode was overwritten by OK of next operation.
The bug was that in case of an error, e.g. "operation not permitted", the error was not logged and the errcode was overwritten by OK of next operation.