projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9fac50
)
CentOS: Another fix for old compiler version
author
Markus Goetz
<markus@woboq.com>
Tue, 7 Feb 2017 17:32:34 +0000
(18:32 +0100)
committer
Markus Goetz
<markus@woboq.com>
Tue, 7 Feb 2017 17:32:34 +0000
(18:32 +0100)
src/libsync/discoveryphase.cpp
patch
|
blob
|
history
diff --git
a/src/libsync/discoveryphase.cpp
b/src/libsync/discoveryphase.cpp
index faa7c0b0703b4653296c9ade0d8cfeb258119226..dd1e234b634fb7dad5b487bb018b60b903c4f8ba 100644
(file)
--- a/
src/libsync/discoveryphase.cpp
+++ b/
src/libsync/discoveryphase.cpp
@@
-370,7
+370,7
@@
void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con
/* All the entries in a external storage have 'M' in their permission. However, for all
purposes in the desktop client, we only need to know about the mount points.
So replace the 'M' by a 'm' for every sub entries in an external storage */
- std::replace(
std::begin(file_stat->remotePerm), std::end
(file_stat->remotePerm),
+ std::replace(
file_stat->remotePerm, file_stat->remotePerm + strlen
(file_stat->remotePerm),
'M', 'm');
}