diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-24 13:47:28 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-24 13:47:28 -0700 |
| commit | 31658ca1e37cb8118a8a081e6d8f6e15e39a1cea (patch) | |
| tree | 0c7c2828efa24a8207639649a011ba9d3c58f71e | |
| parent | 60ec6281e7a98cb268cf9a8ec7945069fe195cde (diff) | |
Fix broken path in setUser
| -rw-r--r-- | hotline/transaction_handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index 650aae0..9edecb8 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -634,7 +634,7 @@ func HandleSetUser(cc *ClientConn, t *Transaction) (res []Transaction, err error if err != nil { return res, err } - if err := os.WriteFile(cc.Server.ConfigDir+"Users/"+login+".yaml", out, 0666); err != nil { + if err := os.WriteFile(filepath.Join(cc.Server.ConfigDir, "Users", login+".yaml"), out, 0666); err != nil { return res, err } |