mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix extfs mkdir setting bad mode.
This commit is contained in:
parent
ac785d861e
commit
b5b2d159c6
1 changed files with 2 additions and 2 deletions
|
@ -286,7 +286,7 @@ void HandleReadAt(int chl, struct fsm_req_pread* msg, Filesystem* fs)
|
|||
free(buf);
|
||||
}
|
||||
|
||||
void HandleWriteAt(int chl, struct fsm_req_pread* msg, Filesystem* fs)
|
||||
void HandleWriteAt(int chl, struct fsm_req_pwrite* msg, Filesystem* fs)
|
||||
{
|
||||
if ( fs->num_inodes <= msg->ino ) { RespondError(chl, EBADF); return; }
|
||||
Inode* inode = fs->GetInode((uint32_t) msg->ino);
|
||||
|
@ -325,7 +325,7 @@ void HandleOpen(int chl, struct fsm_req_open* msg, Filesystem* fs)
|
|||
result->Unref();
|
||||
}
|
||||
|
||||
void HandleMakeDir(int chl, struct fsm_req_open* msg, Filesystem* fs)
|
||||
void HandleMakeDir(int chl, struct fsm_req_mkdir* msg, Filesystem* fs)
|
||||
{
|
||||
if ( fs->num_inodes <= msg->dirino ) { RespondError(chl, EBADF); return; }
|
||||
Inode* inode = fs->GetInode((uint32_t) msg->dirino);
|
||||
|
|
Loading…
Add table
Reference in a new issue