fix copyin file permission & reset param

This commit is contained in:
criyle 2019-08-08 23:10:39 -07:00
parent 0d3940cb48
commit 121ae986ec
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ func handleCopyIn(s *unixsocket.Socket, cmd *Cmd, msg *unixsocket.Msg) error {
}
defer inf.Close()
outf, err := os.OpenFile(cmd.Path, os.O_CREATE|os.O_RDWR|os.O_TRUNC, 666)
outf, err := os.OpenFile(cmd.Path, os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0666)
if err != nil {
return sendErrorReply(s, "copyin: open write file %v", err)
}

View File

@ -78,7 +78,7 @@ func (m *Master) Delete(p string) error {
}
// Reset remove all from /tmp and /w
func (m *Master) Reset(p string) error {
func (m *Master) Reset() error {
cmd := Cmd{
Cmd: cmdReset,
}