Fixes #1 segmentation violation with unprivileged user
This commit is contained in:
parent
38d9c881b3
commit
ffa3b6f3d2
3 changed files with 14 additions and 14 deletions
|
@ -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?")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue