summaryrefslogtreecommitdiff
path: root/getfsdev.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-01-28 20:43:09 +0000
committerWayne Davison <wayned@samba.org>2005-01-28 20:43:09 +0000
commit422696201acf424dc0c46558f993d27e86bddd1b (patch)
treeb4e8c6e49c0a6320ae9d82d3b61deb6fdd249d2a /getfsdev.c
parent58fef0ac3850006697dca6478d57e75a168b0394 (diff)
downloadrsync-422696201acf424dc0c46558f993d27e86bddd1b.tar.gz
rsync-422696201acf424dc0c46558f993d27e86bddd1b.tar.bz2
rsync-422696201acf424dc0c46558f993d27e86bddd1b.zip
Call the right stat function based on USE_STAT64_FUNCS.
Diffstat (limited to 'getfsdev.c')
-rw-r--r--getfsdev.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/getfsdev.c b/getfsdev.c
index 6ccfceb3..85928a60 100644
--- a/getfsdev.c
+++ b/getfsdev.c
@@ -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);
}