aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsandbox/pre_check_mkdirat.c')
-rw-r--r--libsandbox/pre_check_mkdirat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsandbox/pre_check_mkdirat.c b/libsandbox/pre_check_mkdirat.c
index 8fb38bb..b1e86cf 100644
--- a/libsandbox/pre_check_mkdirat.c
+++ b/libsandbox/pre_check_mkdirat.c
@@ -36,8 +36,8 @@ bool sb_mkdirat_pre_check(const char *func, const char *pathname, int dirfd)
* not want to pass this attempt up to the higher levels as those
* will trigger a sandbox violation.
*/
- struct stat st;
- if (0 == lstat(canonic, &st)) {
+ struct stat64 st;
+ if (0 == lstat64(canonic, &st)) {
int new_errno;
sb_debug_dyn("EARLY FAIL: %s(%s[%s]) @ lstat: %s\n",
func, pathname, canonic, strerror(errno));
@@ -45,7 +45,7 @@ bool sb_mkdirat_pre_check(const char *func, const char *pathname, int dirfd)
new_errno = EEXIST;
/* Hmm, is this a broken symlink we're trying to extend ? */
- if (S_ISLNK(st.st_mode) && stat(pathname, &st) != 0) {
+ if (S_ISLNK(st.st_mode) && stat64(pathname, &st) != 0) {
/* XXX: This awful hack should probably be turned into a
* common func that does a better job. For now, we have
* enough crap to catch gnulib tests #297026.