1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2016-09-26 20:01:58 +02:00
parent 394d3d7115
commit c8487ff12b

View file

@ -715,7 +715,7 @@ ssize_t sys_readlinkat(int dirfd, const char* path, char* buf, size_t size)
delete[] pathcopy;
if ( !desc )
return -1;
return (int) desc->readlink(&ctx, buf, size);
return desc->readlink(&ctx, buf, size);
}
int sys_fsync(int fd)