mirror of
https://github.com/criyle/go-sandbox.git
synced 2025-11-04 14:49:53 +08:00
fix copyin file permission & reset param
This commit is contained in:
parent
0d3940cb48
commit
121ae986ec
@ -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)
|
||||
}
|
||||
|
||||
@ -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,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user