Skip to content

Instantly share code, notes, and snippets.

@mattn
Created June 3, 2015 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/9cfd9fe184e90105761e to your computer and use it in GitHub Desktop.
Save mattn/9cfd9fe184e90105761e to your computer and use it in GitHub Desktop.
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