mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 05:14:15 -04:00
Call the right stat function based on USE_STAT64_FUNCS.
This commit is contained in:
1 parent
58fef0ac38
commit
422696201a
1 file changed
+7
-1
+7
-1
@@ -3,9 +3,15 @@
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
STRUCT_STAT st;
|
||||
int ret;
|
||||
|
||||
while (--argc > 0) {
|
||||
if (stat(*++argv, &st) < 0) {
|
||||
#if USE_STAT64_FUNCS
|
||||
ret = stat64(*++argv, &st);
|
||||
#else
|
||||
ret = stat(*++argv, &st);
|
||||
#endif
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "Unable to stat `%s'\n", *argv);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user