Skip to content

Commit

Permalink
Merge pull request #934 from Dennisbonke/seek
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke authored Oct 23, 2023
2 parents c6983fc + 9aaf816 commit 176790e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sysdeps/managarm/generic/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,9 @@ int sys_seek(int fd, off_t offset, int whence, off_t *new_offset) {
resp.ParseFromArray(recv_resp.data(), recv_resp.length());
if(resp.error() == managarm::fs::Errors::SEEK_ON_PIPE) {
return ESPIPE;
}else{
} else if(resp.error() == managarm::fs::Errors::ILLEGAL_ARGUMENT) {
return EINVAL;
} else {
__ensure(resp.error() == managarm::fs::Errors::SUCCESS);
*new_offset = resp.offset();
return 0;
Expand Down

0 comments on commit 176790e

Please sign in to comment.