jehanne: handle POSIX_chmod and POSIX_fchmod in default_error_translator

This commit is contained in:
Giacomo Tesio 2017-08-23 01:07:16 +02:00
parent 9daa35f217
commit 7917cb8537
1 changed files with 4 additions and 0 deletions

View File

@ -211,6 +211,10 @@ default_error_translator(char* error, uintptr_t caller)
jehanne_fprint(2, "newlib: %s\n", error);
if(caller == ADDRESS(POSIX_open))
return PosixEIO;
if(caller == ADDRESS(POSIX_chmod))
return PosixEPERM;
if(caller == ADDRESS(POSIX_fchmod))
return PosixEPERM;
return PosixEINVAL;
}