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. --- sunrpc/rpc_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sunrpc/rpc_main.c') diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c index d03ec991ea..0223c9a9fc 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 { -- cgit v1.2.3