[Pkg-owncloud-commits] [owncloud-client] 04/70: Initialize the size properly on windows
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat May 17 20:01:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 752112dbaac5b04bc0748e585f448653d984494d
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Wed Apr 30 12:06:50 2014 +0200
Initialize the size properly on windows
---
csync/src/vio/csync_vio.c | 5 -----
csync/src/vio/csync_vio_local.c | 3 +++
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/csync/src/vio/csync_vio.c b/csync/src/vio/csync_vio.c
index 7a4f42a..fa7f74b 100644
--- a/csync/src/vio/csync_vio.c
+++ b/csync/src/vio/csync_vio.c
@@ -113,11 +113,6 @@ int csync_vio_stat(CSYNC *ctx, const char *uri, csync_vio_file_stat_t *buf) {
if (rc < 0) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "Local stat failed, errno %d", errno);
}
-#ifdef _WIN32
- else {
- CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "Win32: STAT-inode for %s: %llu", uri, buf->inode );
- }
-#endif
break;
default:
break;
diff --git a/csync/src/vio/csync_vio_local.c b/csync/src/vio/csync_vio_local.c
index bf8f622..ce2b257 100644
--- a/csync/src/vio/csync_vio_local.c
+++ b/csync/src/vio/csync_vio_local.c
@@ -240,6 +240,9 @@ int csync_vio_local_stat(const char *uri, csync_vio_file_stat_t *buf) {
/* printf("Index: %I64i\n", FileIndex.QuadPart); */
buf->inode = FileIndex.QuadPart;
+ buf->size = (fileInfo.nFileSizeHigh * (int64_t)(MAXDWORD+1)) + fileInfo.nFileSizeLow;
+ buf->fields |= CSYNC_VIO_FILE_STAT_FIELDS_SIZE;
+
/* Get the file time with a win32 call rather than through stat. See
* http://www.codeproject.com/Articles/1144/Beating-the-Daylight-Savings-Time-bug-and-getting
* for deeper explanation.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list