master
xSmurf 10 years ago
parent e82882d1bc
commit c8435f68bc

@ -2,7 +2,6 @@ package daemon
import ( import (
"fmt" "fmt"
"os/user"
"strings" "strings"
"syscall" "syscall"
@ -253,9 +252,7 @@ func (d *daemonState) handleClean(clean *CleanMsg, msg *ipc.Message) error {
return msg.Respond(&ErrorMsg{errmsg}) return msg.Respond(&ErrorMsg{errmsg})
} }
} }
// XXX fs := fs.NewFromProfile(p, nil, d.config.SandboxPath, d.config.UseFullDev, d.log)
u, _ := user.Current()
fs := fs.NewFromProfile(p, u, d.config.SandboxPath, d.config.UseFullDev, d.log)
if err := fs.Cleanup(); err != nil { if err := fs.Cleanup(); err != nil {
return msg.Respond(&ErrorMsg{err.Error()}) return msg.Respond(&ErrorMsg{err.Error()})
} }

Loading…
Cancel
Save