about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCole Helbling <cole.e.helbling@gmail.com>2019-05-16 13:10:45 -0700
committerDrew DeVault <sir@cmpwn.com>2019-05-16 16:28:49 -0400
commit66ba099ca0bfa83cd050050d92663ec45da20141 (patch)
tree3887ee8f103f6badf54ffb6725befd5c005a464c
parent2dafe4b390c75df69c966530e8d9d9ba8a0a4601 (diff)
downloadaerc-66ba099ca0bfa83cd050050d92663ec45da20141.tar.gz
s/aerc.conf/address.conf/ in permission check
Small typo in a recent commit: should abort if accounts.conf is world
readable, not aerc.conf.
-rw-r--r--config/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/config.go b/config/config.go
index 33623d5..9148af4 100644
--- a/config/config.go
+++ b/config/config.go
@@ -143,7 +143,7 @@ func LoadConfig(root *string) (*AercConfig, error) {
 		_root := path.Join(xdg.ConfigHome(), "aerc")
 		root = &_root
 	}
-	filename := path.Join(*root, "aerc.conf")
+	filename := path.Join(*root, "accounts.conf")
 	if err := checkConfigPerms(filename); err != nil {
 		return nil, err
 	}