diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2021-12-27 13:57:13 -0600 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-12-29 07:52:48 +0000 |
commit | 2a9c0277c0d633d940a48726b214b89de2957d07 (patch) | |
tree | 400d8a36ec8719d08a585c731ad0ead4b7d1433f /src/io.c | |
parent | 336a133b7651ef58a9ac075b1a98ef536ea91d4f (diff) | |
download | apk-tools-2a9c0277c0d633d940a48726b214b89de2957d07.tar.gz apk-tools-2a9c0277c0d633d940a48726b214b89de2957d07.tar.bz2 apk-tools-2a9c0277c0d633d940a48726b214b89de2957d07.tar.xz apk-tools-2a9c0277c0d633d940a48726b214b89de2957d07.zip |
use fstatat, not fstatat64
the stat64 family of functions were provided as transitional functions,
but when building on glibc with _GNU_SOURCE, or any other supported system,
the stat functions are equivalent to their stat64 counterparts
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -755,7 +755,7 @@ void apk_fileinfo_hash_xattr(struct apk_file_info *fi, uint8_t alg) int apk_fileinfo_get(int atfd, const char *filename, unsigned int flags, struct apk_file_info *fi, struct apk_atom_pool *atoms) { - struct stat64 st; + struct stat st; unsigned int hash_alg = flags & 0xff; unsigned int xattr_hash_alg = (flags >> 8) & 0xff; int atflags = 0; @@ -766,7 +766,7 @@ int apk_fileinfo_get(int atfd, const char *filename, unsigned int flags, if (flags & APK_FI_NOFOLLOW) atflags |= AT_SYMLINK_NOFOLLOW; - if (fstatat64(atfd, filename, &st, atflags) != 0) + if (fstatat(atfd, filename, &st, atflags) != 0) return -errno; *fi = (struct apk_file_info) { |