diff options
author | Jakob Unterwurzacher | 2016-12-10 11:50:16 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-12-10 11:54:36 +0100 |
commit | c9f4400e6dc71a36df5dc9725f52a8968f5f9803 (patch) | |
tree | 601cff97e2f5d472a68e3a133da43237af032521 /internal/fusefrontend_reverse/reverse_longnames.go | |
parent | 6c86afb5cd63b099d1762da1a2ce3f76703dc4fb (diff) |
Replace all calls to naked panic() with log.Panic()
We want all panics to show up in the syslog.
Diffstat (limited to 'internal/fusefrontend_reverse/reverse_longnames.go')
-rw-r--r-- | internal/fusefrontend_reverse/reverse_longnames.go | 3 |
1 files changed, 2 insertions, 1 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 |