aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mbf/main.go')
-rw-r--r--cmd/mbf/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index a667c3f4..1438baa5 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -70,11 +70,14 @@ func main() {
msg.SwapVerbose(!flagQuiet)
cm.ctx, cm.msg = ctx, msg
cm.base = os.ExpandEnv(cm.base)
+ if cm.base == "" {
+ cm.base = "cache"
+ }
addr.Net = "unix"
addr.Name = os.ExpandEnv(addr.Name)
if addr.Name == "" {
- addr.Name = "daemon"
+ addr.Name = filepath.Join(cm.base, "daemon")
}
return nil