]> Cypherpunks.ru repositories - gocheese.git/blobdiff - main.go
Use native os.CreateTemp instead of own one
[gocheese.git] / main.go
diff --git a/main.go b/main.go
index 08c75535c1491feb8ac230f754cb37b63086e4c2..da276a6ceaae5e50ace659a3ef664b8f0b22bcab 100644 (file)
--- a/main.go
+++ b/main.go
@@ -44,7 +44,7 @@ import (
 )
 
 const (
-       Version   = "3.5.0"
+       Version   = "3.6.0"
        UserAgent = "GoCheese/" + Version
 )
 
@@ -212,6 +212,9 @@ func main() {
                log.Fatalln("Both -tls-cert and -tls-key are required")
        }
 
+       UmaskCur = syscall.Umask(0)
+       syscall.Umask(UmaskCur)
+
        var err error
        PyPIURLParsed, err = url.Parse(*PyPIURL)
        if err != nil {