Skip to content

Commit

Permalink
Fixed openat
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Jun 3, 2024
1 parent 983f575 commit 6e1e424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ INTERCEPTOR(int, openat, int fd, const char *path, int oflag, ...)
mode_t mode = va_arg(args, int);
va_end(args);

return REAL(openat)(fd, path, oflag, args);
return REAL(openat)(fd, path, oflag, mode);
}

INTERCEPTOR(int, fcntl, int filedes, int cmd, ...)
Expand Down

0 comments on commit 6e1e424

Please sign in to comment.