mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Improved error codes in devfs.
This commit is contained in:
parent
9f35df813e
commit
1b56d01f17
1 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ namespace Sortix
|
|||
if ( String::Compare(path, "/null") == 0 ) { return new DevNull; }
|
||||
if ( String::Compare(path, "/tty") == 0 ) { return new DevLogTTY; }
|
||||
|
||||
Error::Set(ENOENT);
|
||||
Error::Set(flags & O_CREAT ? EPERM : ENOENT);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,7 @@ namespace Sortix
|
|||
}
|
||||
|
||||
Error::Set(EPERM);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue