From 3f749c2e7b8226eb8c6f16fb180987dc7efe35ba Mon Sep 17 00:00:00 2001 From: Hongjiu Zhang Date: Sun, 6 Mar 2016 20:18:21 -0500 Subject: sln: use stat64 When using sln on some filesystems which return 64-bit inodes, the stat call might fail during install like so: .../elf/sln .../elf/symlink.list /lib32/libc.so.6: invalid destination: Value too large for defined data type /lib32/ld-linux.so.2: invalid destination: Value too large for defined data type Makefile:104: recipe for target 'install-symbolic-link' failed Switch to using stat64 all the time to avoid this. URL: https://bugs.gentoo.org/576396 (cherry picked from commit f5e753c8c3a18a1e3c715dd11bf4dc341b5c481f) (cherry picked from commit d6778fc4b0039b2116f88218212618ca357fee2f) --- elf/sln.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'elf/sln.c') diff --git a/elf/sln.c b/elf/sln.c index 1a7d24e6dc..c6601fdbfc 100644 --- a/elf/sln.c +++ b/elf/sln.c @@ -167,11 +167,11 @@ makesymlink (src, dest) const char *src; const char *dest; { - struct stat stats; + struct stat64 stats; const char *error; /* Destination must not be a directory. */ - if (lstat (dest, &stats) == 0) + if (lstat64 (dest, &stats) == 0) { if (S_ISDIR (stats.st_mode)) { -- cgit 1.4.1