Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

crypt: fix for unencrypted directory names on case insensitive remotes

Ole Frost02d6d28ec484
diff --git a/backend/crypt/crypt.go b/backend/crypt/crypt.go
index b1c8111d0..f3eb8317d 100644
--- a/backend/crypt/crypt.go
+++ b/backend/crypt/crypt.go
@@ -235,7 +235,7 @@ func NewFs(ctx context.Context, name, rpath string, m configmap.Mapper) (fs.Fs,
// the features here are ones we could support, and they are
// ANDed with the ones from wrappedFs
f.features = (&fs.Features{
- CaseInsensitive: cipher.NameEncryptionMode() == NameEncryptionOff,
+ CaseInsensitive: !cipher.dirNameEncrypt || cipher.NameEncryptionMode() == NameEncryptionOff,
DuplicateFiles: true,
ReadMimeType: false, // MimeTypes not supported with crypt
WriteMimeType: false,
diff --git a/docs/content/crypt.md b/docs/content/crypt.md
index 813aa0830..2b0550246 100644
--- a/docs/content/crypt.md
+++ b/docs/content/crypt.md
@@ -455,6 +455,7 @@ Properties:
- "off"
- Don't encrypt the file names.
- Adds a ".bin" extension only.
+ - May cause problems on [case insensitive](/overview/#case-insensitive) [storage systems](/overview/#features) like OneDrive, Dropbox, Windows, OSX and SMB.
#### --crypt-directory-name-encryption
@@ -473,6 +474,7 @@ Properties:
- Encrypt directory names.
- "false"
- Don't encrypt directory names, leave them intact.
+ - May cause problems on [case insensitive](/overview/#case-insensitive) [storage systems](/overview/#features) like OneDrive, Dropbox, Windows, OSX and SMB.
#### --crypt-password