freebsd-ports/mail/hydroxide/files/patch-config_config.go
Yusuf Yaman 9dcbff870a mail/hydroxide: switched to upstream
Port has been switched to use upstream because I think it's better to
just use a patch rather than forking the upstream and making the
change there.

PR:	281669
2024-09-24 02:22:49 +03:00

17 lines
490 B
Go

--- config/config.go.orig 2024-09-23 15:32:25 UTC
+++ config/config.go
@@ -6,12 +6,9 @@ func Path(filename string) (string, error) {
)
func Path(filename string) (string, error) {
- configHome, err := os.UserConfigDir()
- if err != nil {
- return "", err
- }
+ configHome := "/var/db/hydroxide"
- p := filepath.Join(configHome, "hydroxide", filename)
+ p := filepath.Join(configHome, filename)
dirname, _ := filepath.Split(p)
if err := os.MkdirAll(dirname, 0700); err != nil {