]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-stat/main.go
Ability to forcefully override umask
[nncp.git] / src / cmd / nncp-stat / main.go
index 8f7fe76fb3c427a0f6899b00721a95c02847847f..c03745a5241e9361ae83626386af2e9dbb067f35 100644 (file)
@@ -26,7 +26,7 @@ import (
        "sort"
 
        "github.com/dustin/go-humanize"
-       "go.cypherpunks.ru/nncp/v4"
+       "go.cypherpunks.ru/nncp/v5"
 )
 
 func usage() {
@@ -77,6 +77,7 @@ func main() {
        }
        sort.Strings(nodeNames)
 
+       ctx.Umask()
        var node *nncp.Node
        for _, nodeName := range nodeNames {
                node = nodeNameToNode[nodeName]