diff options
author | 2021-11-05 23:14:42 -0400 | |
---|---|---|
committer | 2021-11-05 23:14:42 -0400 | |
commit | 632cc66ba52eb6aa7fd3e457c64d9186389a20b4 (patch) | |
tree | f8ce207063dd445841183f1d0d832c92f41b3c6d /src | |
parent | build: require at least a C99 compiler (diff) | |
download | sandbox-632cc66ba52eb6aa7fd3e457c64d9186389a20b4.tar.gz sandbox-632cc66ba52eb6aa7fd3e457c64d9186389a20b4.tar.bz2 sandbox-632cc66ba52eb6aa7fd3e457c64d9186389a20b4.zip |
change FS calls to use 64-bit interfaces explicitly
Make sure we use 64-bit FS interfaces when accessing the FS. This
is needed not only to stat or open large files, but even files with
64-bit inodes.
Bug: https://bugs.gentoo.org/583282
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/namespaces.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namespaces.c b/src/namespaces.c index ee9f82a..290111a 100644 --- a/src/namespaces.c +++ b/src/namespaces.c @@ -28,7 +28,7 @@ #define xfopen(path, ...) \ ({ \ - FILE *_ret = fopen(path, __VA_ARGS__); \ + FILE *_ret = fopen64(path, __VA_ARGS__); \ if (_ret == 0) \ sb_perr("fopen(%s) failed", #path); \ _ret; \ @@ -107,7 +107,7 @@ static void ns_mount_setup(void) /* Now map in all the files/dirs we do want to expose. */ int fd; #define bind_file(node) \ - fd = open("/dev/shm/" node, O_CREAT, 0); \ + fd = open64("/dev/shm/" node, O_CREAT, 0); \ sb_assert(fd != -1); \ close(fd); \ xmount("/dev/" node, "/dev/shm/" node, NULL, MS_BIND, NULL) |