aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-19 19:49:52 +0900
committerOphestra <cat@gensokyo.uk>2026-04-19 19:50:54 +0900
commit021cbbc2a81dc339ffe18b308df894f15c3a1e92 (patch)
tree38b79da8291d2bcde0573f5dc1dc217e4f2e7666 /cmd/mbf/main.go
parenta4a54a4a4d738f560f5b941d378791390603c2ba (diff)
cmd/mbf: default daemon socket in cache
This location makes more sense than the current directory. Signed-off-by: Ophestra <cat@gensokyo.uk>
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