]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-reass/main.go
umask friendly permissions for newly created files/directories
[nncp.git] / src / cmd / nncp-reass / main.go
index a798bd37f0e02f2044fb4de036b45e9c7ad7dfb2..bc8f0348b2b96cdadfd689bc4592d1c3c57d4e3e 100644 (file)
@@ -26,7 +26,6 @@ import (
        "fmt"
        "hash"
        "io"
-       "io/ioutil"
        "log"
        "os"
        "path/filepath"
@@ -172,7 +171,7 @@ func process(ctx *nncp.Ctx, path string, keep, dryRun, stdout, dumpMeta bool) bo
                dst = os.Stdout
                sds = nncp.SDS{"path": path}
        } else {
-               tmp, err = ioutil.TempFile(mainDir, "nncp-reass")
+               tmp, err = nncp.TempFile(mainDir, "reass")
                if err != nil {
                        log.Fatalln(err)
                }