Skip to content

Commit 76a1205

Browse files
committed
copy: use getdents64() instead of getdents()
1 parent 5c0b30f commit 76a1205

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shared/copy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ static int dir_is_empty_at(int dir_fd, const char *path) {
908908
struct dirent *de;
909909
ssize_t n;
910910

911-
n = getdents(fd, buf, m);
911+
n = getdents64(fd, buf, m);
912912
if (n < 0)
913913
return -errno;
914914
if (n == 0)

0 commit comments

Comments
 (0)