mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix readlinkat(2) return value truncation.
This commit is contained in:
parent
394d3d7115
commit
c8487ff12b
1 changed files with 1 additions and 1 deletions
|
@ -715,7 +715,7 @@ ssize_t sys_readlinkat(int dirfd, const char* path, char* buf, size_t size)
|
||||||
delete[] pathcopy;
|
delete[] pathcopy;
|
||||||
if ( !desc )
|
if ( !desc )
|
||||||
return -1;
|
return -1;
|
||||||
return (int) desc->readlink(&ctx, buf, size);
|
return desc->readlink(&ctx, buf, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
int sys_fsync(int fd)
|
int sys_fsync(int fd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue