diff options
Diffstat (limited to 'internal/fusefrontend_reverse')
-rw-r--r-- | internal/fusefrontend_reverse/reverse_longnames.go | 3 | ||||
-rw-r--r-- | internal/fusefrontend_reverse/rfs.go | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/internal/fusefrontend_reverse/reverse_longnames.go b/internal/fusefrontend_reverse/reverse_longnames.go index 0234397..24335bd 100644 --- a/internal/fusefrontend_reverse/reverse_longnames.go +++ b/internal/fusefrontend_reverse/reverse_longnames.go @@ -1,6 +1,7 @@ package fusefrontend_reverse import ( + "log" "os" "path/filepath" "sync" @@ -65,7 +66,7 @@ func (rfs *ReverseFS) findLongnameParent(dir string, dirIV []byte, longname stri } cName := rfs.nameTransform.EncryptName(plaintextName, dirIV) if len(cName) <= syscall.NAME_MAX { - panic("logic error or wrong shortNameMax constant?") + log.Panic("logic error or wrong shortNameMax constant?") } hName := nametransform.HashLongName(cName) longnameParentCache[hName] = plaintextName diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go index aca4b90..4a2cc06 100644 --- a/internal/fusefrontend_reverse/rfs.go +++ b/internal/fusefrontend_reverse/rfs.go @@ -3,6 +3,7 @@ package fusefrontend_reverse import ( "encoding/base64" "fmt" + "log" "os" "path/filepath" "sync" @@ -53,7 +54,7 @@ var _ pathfs.FileSystem = &ReverseFS{} // ReverseFS provides an encrypted view. func NewFS(args fusefrontend.Args) *ReverseFS { if args.CryptoBackend != cryptocore.BackendAESSIV { - panic("reverse mode must use AES-SIV, everything else is insecure") + log.Panic("reverse mode must use AES-SIV, everything else is insecure") } initLongnameCache() cryptoCore := cryptocore.New(args.Masterkey, args.CryptoBackend, contentenc.DefaultIVBits) |