jehanne: use libposix_translate_kernel_errors in default_error_translator

This commit is contained in:
Giacomo Tesio 2017-10-13 04:12:43 +02:00
parent cd23503dfd
commit 03732ac23f
1 changed files with 3 additions and 0 deletions

View File

@ -232,6 +232,9 @@ default_error_translator(char* error, uintptr_t caller)
return PosixEPERM;
if(caller == ADDRESS(POSIX_fchdir))
return PosixEACCES;
PosixError e = libposix_translate_kernel_errors(error);
if(e != 0)
return e;
return PosixEINVAL;
}