]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/ctx.go
Replace YAML with Hjson
[nncp.git] / src / ctx.go
index 28c9b38de1bfcaa5083a9b1ad82c28ac91c0f136..0030c706d71fdb35c7edddeda60a63f0a42b627a 100644 (file)
@@ -37,8 +37,8 @@ type Ctx struct {
        LogPath    string
        Quiet      bool
        Debug      bool
-       NotifyFile *FromToYAML
-       NotifyFreq *FromToYAML
+       NotifyFile *FromToJSON
+       NotifyFreq *FromToJSON
 }
 
 func (ctx *Ctx) FindNode(id string) (*Node, error) {
@@ -59,7 +59,7 @@ func (ctx *Ctx) FindNode(id string) (*Node, error) {
 
 func (ctx *Ctx) ensureRxDir(nodeId *NodeId) error {
        dirPath := filepath.Join(ctx.Spool, nodeId.String(), string(TRx))
-       if err := os.MkdirAll(dirPath, os.FileMode(0700)); err != nil {
+       if err := os.MkdirAll(dirPath, os.FileMode(0777)); err != nil {
                ctx.LogE("dir-ensure", SDS{"dir": dirPath, "err": err}, "")
                return err
        }