Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mention the latest --log-* option changes.
[rsync/rsync.git]
/
getfsdev.c
diff --git
a/getfsdev.c
b/getfsdev.c
index
6ccfceb
..
3b113bd
100644
(file)
--- a/
getfsdev.c
+++ b/
getfsdev.c
@@
-3,9
+3,15
@@
int main(int argc, char *argv[])
{
STRUCT_STAT st;
int main(int argc, char *argv[])
{
STRUCT_STAT st;
+ int ret;
while (--argc > 0) {
while (--argc > 0) {
- if (stat(*++argv, &st) < 0) {
+#ifdef 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);
}
fprintf(stderr, "Unable to stat `%s'\n", *argv);
exit(1);
}