aboutsummaryrefslogtreecommitdiff
path: root/pkg/zabbix/workdir.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-05-19 10:58:22 +0200
committerJulien Dessaux2021-05-19 10:58:22 +0200
commitffa3b6f3d20db7d067272a0dc2245d724fbe1598 (patch)
tree8cc19286ec06bcdaf0f8acbbf723669b3c3fd9f3 /pkg/zabbix/workdir.go
parentUpdated for go 1.16 modules (diff)
downloadbareos-zabbix-check-ffa3b6f3d20db7d067272a0dc2245d724fbe1598.tar.gz
bareos-zabbix-check-ffa3b6f3d20db7d067272a0dc2245d724fbe1598.tar.bz2
bareos-zabbix-check-ffa3b6f3d20db7d067272a0dc2245d724fbe1598.zip
Fixes #1 segmentation violation with unprivileged user1.3
Diffstat (limited to '')
-rw-r--r--pkg/zabbix/workdir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/zabbix/workdir.go b/pkg/zabbix/workdir.go
index 287c80a..eb35942 100644
--- a/pkg/zabbix/workdir.go
+++ b/pkg/zabbix/workdir.go
@@ -29,7 +29,7 @@ func checkWorkDir() error {
workDir = filepath.Join(root, baculaWorkDir)
info, err := os.Stat(workDir)
if os.IsNotExist(err) || !info.IsDir() {
- return fmt.Errorf("Could not find a suitable work directory. Is bareos or bacula installed?")
+ return fmt.Errorf("Could not autodetect a suitable work directory. Is bareos or bacula installed?")
}
}
}