[Pkg-owncloud-commits] [owncloud-client] 277/498: SyncJournal: Use proper long path handling.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:58 UTC 2015


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 02a5a8ea3b9fb55312fd038f5fa8c6bec4b6930b
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Jul 3 16:26:00 2015 +0200

    SyncJournal: Use proper long path handling.
---
 src/libsync/syncjournalfilerecord.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libsync/syncjournalfilerecord.cpp b/src/libsync/syncjournalfilerecord.cpp
index 1e3e96a..01cefe4 100644
--- a/src/libsync/syncjournalfilerecord.cpp
+++ b/src/libsync/syncjournalfilerecord.cpp
@@ -14,6 +14,7 @@
 #include "syncjournalfilerecord.h"
 #include "syncfileitem.h"
 #include "utility.h"
+#include "filesystem.h"
 
 #include <qfileinfo.h>
 #include <qdebug.h>
@@ -46,7 +47,8 @@ SyncJournalFileRecord::SyncJournalFileRecord(const SyncFileItem &item, const QSt
     /* Query the inode:
        based on code from csync_vio_local.c (csync_vio_local_stat)
        Get the Windows file id as an inode replacement. */
-    HANDLE h = CreateFileW( (wchar_t*)localFileName.utf16(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING,
+
+    HANDLE h = CreateFileW( (wchar_t*) FileSystem::longWinPath(localFileName).utf16(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING,
                      FILE_ATTRIBUTE_NORMAL+FILE_FLAG_BACKUP_SEMANTICS, NULL );
 
     if( h == INVALID_HANDLE_VALUE ) {

-- 
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