Fix readlinkat(2) return value truncation.
This commit is contained in:
parent
394d3d7115
commit
c8487ff12b
|
@ -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…
Reference in New Issue