Skip to content

Commit 450daca

Browse files
committed
Check for right syscall number in devices.c
Check for define of SYS_getdents64 instead of SYS_getdents in devices.c, as the former is actually used.
1 parent 1f90b39 commit 450daca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devices.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ int scan_devices(char *device_name /* MAX_PATH_LEN bytes */, int type, unsigned
257257
while (1) {
258258
/* We assume that either of these will be available from a libc
259259
implementation. */
260-
#ifdef SYS_getdents
260+
#ifdef SYS_getdents64
261261
nread = syscall(SYS_getdents64, dirfd, (void *)buf, 1024);
262262
#else
263263
nread = getdents64(dirfd, (void *)buf, 1024);

0 commit comments

Comments
 (0)