aboutsummaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-05-03 13:47:00 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-05-03 13:47:00 +0200
commitf96a2c43ac81acd7f51fafa109770b6744c4959d (patch)
tree831f5793f9a943a0bd40f3664e89e244a03a311e /file
parentf352ef2392daf85ce0fc7429c31e89fb69dffa91 (diff)
fix
Diffstat (limited to 'file')
-rw-r--r--file/names.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/file/names.go b/file/names.go
index 9d3e23b..a522f6b 100644
--- a/file/names.go
+++ b/file/names.go
@@ -26,7 +26,7 @@ func splitNameExt(fname string) (string, string) {
func Names(pubFile, encFile string) error {
pubName, pubExt := splitNameExt(pubFile)
encName, encExt := splitNameExt(encFile)
- if pubExt != PubExt || encExt != SigExt || pubName != encName {
+ if pubExt != PubExt || encExt != EncExt || pubName != encName {
return ErrNames
}
return nil