summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorGravatar shtrophic2025-01-24 20:38:26 +0100
committerGravatar shtrophic2025-01-24 20:38:26 +0100
commit85be7f36e12507cff7607df22ca14f8bfc00f6e2 (patch)
treee41bedab3e3b011c16d2ea6180926470cc8586aa /utils.c
parentfix memory leak (diff)
parentVersion 2.69 RELEASED. (diff)
downloadpenes-snac2-85be7f36e12507cff7607df22ca14f8bfc00f6e2.tar.gz
penes-snac2-85be7f36e12507cff7607df22ca14f8bfc00f6e2.tar.xz
penes-snac2-85be7f36e12507cff7607df22ca14f8bfc00f6e2.zip
Merge remote-tracking branch 'upstream/master' into curl-smtp
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 3b0a78f..faf6d12 100644
--- a/utils.c
+++ b/utils.c
@@ -318,6 +318,10 @@ int adduser(const char *uid)
318 mkdirx(d); 318 mkdirx(d);
319 } 319 }
320 320
321 /* add a specially short data retention time for the relay */
322 if (strcmp(uid, "relay") == 0)
323 config = xs_dict_set(config, "purge_days", xs_stock(1));
324
321 xs *cfn = xs_fmt("%s/user.json", basedir); 325 xs *cfn = xs_fmt("%s/user.json", basedir);
322 326
323 if ((f = fopen(cfn, "w")) == NULL) { 327 if ((f = fopen(cfn, "w")) == NULL) {