Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[preload] Add nomap_nolog variants of fstat64 and stat64. Fixes JB#53953
nomap_nolog variants of fstat64 and stat64 are used when `_STAT_VER`
is not defined (glibc >=2.33) but were not generated.
  • Loading branch information
Thaodan committed Apr 16, 2021
1 parent 44e4202 commit cc2941a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scratchbox2/preload/interface.master
Expand Up @@ -447,9 +447,11 @@ GATE: int fstat64(int fd, struct stat64 *buf) : class(STAT) \

#ifdef AT_SYMLINK_NOFOLLOW
WRAP: int fstatat(int dirfd, const char *pathname, struct stat *buf, int flags) : \
create_nomap_nolog_version \
dont_resolve_final_symlink_if(flags&AT_SYMLINK_NOFOLLOW) \
map_at(dirfd,pathname) class(STAT)
WRAP: int fstatat64(int dirfd, const char *pathname, struct stat64 *buf, int flags) : \
create_nomap_nolog_version \
dont_resolve_final_symlink_if(flags&AT_SYMLINK_NOFOLLOW) \
map_at(dirfd,pathname) class(STAT)
#endif
Expand Down Expand Up @@ -666,7 +668,8 @@ WRAP: int stat(const char *file_name, struct stat *buf) : \
map(file_name) class(STAT)

#ifdef HAVE_STAT64
WRAP: int stat64(const char *file_name, struct stat64 *buf) : map(file_name) class(STAT)
WRAP: int stat64(const char *file_name, struct stat64 *buf) : map(file_name) class(STAT) \
create_nomap_nolog_version
#endif

-- symlink and symlinkat:
Expand Down

0 comments on commit cc2941a

Please sign in to comment.