www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 6a687e8c40a96932a9a58e7810da3a9bc095b2c8
parent a97e27a9f2b23639023b9eb9168e525e9bba4dd8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 17 Jul 2015 18:17:15 -0400

Fix "filename too long" sync error for missing files on OS X/Linux

Diffstat:
Mchrome/content/zotero/xpcom/storage.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -1078,7 +1078,9 @@ Zotero.Sync.Storage = new function () { // This can happen if a path is too long on Windows, // e.g. a file is being accessed on a VM through a share // (and probably in other cases). - || (e.winLastError && e.winLastError == 3))) { + || (e.winLastError && e.winLastError == 3) + // Handle long filenames on OS X/Linux + || (e.unixErrno && e.unixErrno == 63))) { Zotero.debug("Marking attachment " + lk + " as missing"); updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_TO_DOWNLOAD; return;