]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-toss/main.go
Ability to forcefully override umask
[nncp.git] / src / cmd / nncp-toss / main.go
index 0c41931c22055b87b4aebe59eabebf2d1d4b5441..3f31ff9fb41d27adcff5d930e224e42a83b909e6 100644 (file)
@@ -25,7 +25,7 @@ import (
        "os"
        "time"
 
-       "go.cypherpunks.ru/nncp/v4"
+       "go.cypherpunks.ru/nncp/v5"
 )
 
 func usage() {
@@ -85,6 +85,8 @@ func main() {
                }
        }
 
+       ctx.Umask()
+
 Cycle:
        isBad := false
        for nodeId, node := range ctx.Neigh {