From 4c0fe6fe42ecf97c9f7f5a0921638560c89973a2 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 10 May 2013 11:41:53 +0200 Subject: Use *stat64 instead of *stat in installed programs This ensures reliable operation on file systems with inode numbers which do not fit into 32 bits. --- elf/sprof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'elf') diff --git a/elf/sprof.c b/elf/sprof.c index 54dfebdd5a..5c70ec0473 100644 --- a/elf/sprof.c +++ b/elf/sprof.c @@ -744,7 +744,7 @@ load_profdata (const char *name, struct shobj *shobj) { struct profdata *result; int fd; - struct stat st; + struct stat64 st; void *addr; uint32_t *narcsp; size_t fromlimit; @@ -783,7 +783,7 @@ load_profdata (const char *name, struct shobj *shobj) /* We have found the file, now make sure it is the right one for the data file. */ - if (fstat (fd, &st) < 0) + if (fstat64 (fd, &st) < 0) { error (0, errno, _("while stat'ing profiling data file")); close (fd); -- cgit v1.2.3-70-g09d2