mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
WebDAV: try to preserve the lock fs as much as possible
This commit is contained in:
@@ -35,10 +35,8 @@ func NewCryptFs(connectionID, rootDir, mountPath string, config CryptFsConfig) (
|
||||
if err := config.Validate(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if config.Passphrase.IsEncrypted() {
|
||||
if err := config.Passphrase.Decrypt(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := config.Passphrase.TryDecrypt(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
fs := &CryptFs{
|
||||
OsFs: &OsFs{
|
||||
|
||||
Reference in New Issue
Block a user