diff options
author | Hongjiu Zhang <noctuorare@gmail.com> | 2016-03-06 20:18:21 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-03-07 11:45:43 -0500 |
commit | 9f95ec0adbf21596b047dc6c20e0ee5e8db6744e (patch) | |
tree | f202890513a5b01f4170b6c8cc139eef7df76837 | |
parent | 1885fe873e0e090fe1e9a1a456c559b909553309 (diff) | |
download | glibc-9f95ec0adbf21596b047dc6c20e0ee5e8db6744e.zip glibc-9f95ec0adbf21596b047dc6c20e0ee5e8db6744e.tar.gz glibc-9f95ec0adbf21596b047dc6c20e0ee5e8db6744e.tar.bz2 |
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)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | elf/sln.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2016-03-07 Hongjiu Zhang <noctuorare@gmail.com> + + * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat + to lstat64. + 2016-03-02 Stefan Liebler <stli@linux.vnet.ibm.com> [BZ #19682] @@ -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)) { |