From 993b89c0c8507d06dbd626ffccb1c1461e7ca741 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Sat, 20 Jun 2015 02:37:36 +0000 Subject: [PATCH] Fixed panic on cleaning unproperly terminated sandbox --- fs/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs.go b/fs/fs.go index 324ef16..45e70c4 100644 --- a/fs/fs.go +++ b/fs/fs.go @@ -99,7 +99,7 @@ func NewFromProfile(profile *oz.Profile, user *user.User, basePath string, UseFu fs.noDefaults = profile.NoDefaults fs.noSysAndProc = profile.NoSysProc fs.fullDevices = UseFullDev - if profile.XServer.Enabled { + if profile.XServer.Enabled && user != nil { fs.xpra = path.Join(user.HomeDir, ".Xoz", profile.Name) } return fs