Skip to content

Commit

Permalink
Check for right syscall number in devices.c
Browse files Browse the repository at this point in the history
Check for define of SYS_getdents64 instead of SYS_getdents in devices.c,
as the former is actually used.
  • Loading branch information
chris-se committed Feb 28, 2016
1 parent 1f90b39 commit 450daca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ int scan_devices(char *device_name /* MAX_PATH_LEN bytes */, int type, unsigned
while (1) {
/* We assume that either of these will be available from a libc
implementation. */
#ifdef SYS_getdents
#ifdef SYS_getdents64
nread = syscall(SYS_getdents64, dirfd, (void *)buf, 1024);
#else
nread = getdents64(dirfd, (void *)buf, 1024);
Expand Down

0 comments on commit 450daca

Please sign in to comment.