aboutsummaryrefslogtreecommitdiff
path: root/sunrpc
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2013-05-10 11:41:53 +0200
committerFlorian Weimer <fweimer@redhat.com>2013-05-10 11:42:17 +0200
commit4c0fe6fe42ecf97c9f7f5a0921638560c89973a2 (patch)
tree68edd989f0b3e6d5f4817695aac64de89688fc73 /sunrpc
parenta3375d299007c7d38de9427cd38ca932b052b048 (diff)
downloadglibc-4c0fe6fe42ecf97c9f7f5a0921638560c89973a2.zip
glibc-4c0fe6fe42ecf97c9f7f5a0921638560c89973a2.tar.gz
glibc-4c0fe6fe42ecf97c9f7f5a0921638560c89973a2.tar.bz2
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.
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/rpc_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c
index d03ec99..0223c9a 100644
--- a/sunrpc/rpc_main.c
+++ b/sunrpc/rpc_main.c
@@ -326,9 +326,9 @@ clear_args (void)
static void
find_cpp (void)
{
- struct stat buf;
+ struct stat64 buf;
- if (stat (CPP, &buf) == 0)
+ if (stat64 (CPP, &buf) == 0)
return;
if (cppDefined) /* user specified cpp but it does not exist */
@@ -1114,17 +1114,17 @@ putarg (int whereto, const char *cp)
static void
checkfiles (const char *infile, const char *outfile)
{
- struct stat buf;
+ struct stat64 buf;
if (infile) /* infile ! = NULL */
- if (stat (infile, &buf) < 0)
+ if (stat64 (infile, &buf) < 0)
{
perror (infile);
crash ();
}
if (outfile)
{
- if (stat (outfile, &buf) < 0)
+ if (stat64 (outfile, &buf) < 0)
return; /* file does not exist */
else
{