forked from pool/glibc
Andreas Schwab
44414488d6
- Import patches from 2.23 branch OBS-URL: https://build.opensuse.org/request/show/394998 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=436
24 lines
635 B
Diff
24 lines
635 B
Diff
2016-03-07 Hongjiu Zhang <noctuorare@gmail.com>
|
|
|
|
* elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
|
|
to lstat64.
|
|
|
|
Index: glibc-2.23/elf/sln.c
|
|
===================================================================
|
|
--- glibc-2.23.orig/elf/sln.c
|
|
+++ glibc-2.23/elf/sln.c
|
|
@@ -164,11 +164,11 @@ makesymlinks (const char *file)
|
|
static int
|
|
makesymlink (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))
|
|
{
|