Created
June 3, 2015 08:35
-
-
Save mattn/9cfd9fe184e90105761e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/issue/issue.go b/issue/issue.go | |
index f310b9e..7066fb4 100644 | |
--- a/issue/issue.go | |
+++ b/issue/issue.go | |
@@ -240,6 +240,7 @@ import ( | |
"net/http" | |
"os" | |
"path/filepath" | |
+ "runtime" | |
"sort" | |
"strconv" | |
"strings" | |
@@ -627,7 +628,7 @@ func loadAuth() { | |
"password directly is that you can limit its use and revoke it at any time.\n\n") | |
} | |
fi, err := os.Stat(filename) | |
- if fi.Mode()&0077 != 0 { | |
+ if fi.Mode()&0077 != 0 && runtime.GOOS != "windows" { | |
log.Fatalf("reading token: %s mode is %#o, want %#o", shortFilename, fi.Mode()&0777, fi.Mode()&0700) | |
} | |
authToken = strings.TrimSpace(string(data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment