From ada7da92c940d1e02582ee886ad2812777cacd05 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 26 Feb 2016 11:12:33 +0800 Subject: [PATCH] Fix #267 @plinyGo --- conf/wide.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/wide.go b/conf/wide.go index 750dc2f..05aa054 100644 --- a/conf/wide.go +++ b/conf/wide.go @@ -116,6 +116,10 @@ func initUsers() { continue } + if ".json" != filepath.Ext(name) { // such as backup (*.json~) not be created by Wide + continue + } + user := &User{} bytes, _ := ioutil.ReadFile("conf/users/" + name)