This commit is contained in:
Vitor Santos Costa
2016-05-15 08:08:42 +01:00
parent d375d0ffbb
commit 9f664c9e36
5 changed files with 18 additions and 4 deletions

View File

@@ -374,8 +374,10 @@ static Int access_file(USES_REGS1) {
{
int mode;
if (atmode == AtomExist)
mode = 00;
if (atmode == AtomExist)
mode = 00;
else if (atmode == AtomExists)
mode = 00;
else if (atmode == AtomWrite)
mode = 02;
else if (atmode == AtomRead)
@@ -400,8 +402,10 @@ static Int access_file(USES_REGS1) {
{
int mode;
if (atmode == AtomExist)
mode = F_OK;
if (atmode == AtomExist)
mode = F_OK;
else if (atmode == AtomExists)
mode = F_OK;
else if (atmode == AtomWrite)
mode = W_OK;
else if (atmode == AtomRead)