diff options
| author | shtrophic <christoph@liebender.dev> | 2025-01-24 20:38:26 +0100 |
|---|---|---|
| committer | shtrophic <christoph@liebender.dev> | 2025-01-24 20:38:26 +0100 |
| commit | 85be7f36e12507cff7607df22ca14f8bfc00f6e2 (patch) | |
| tree | e41bedab3e3b011c16d2ea6180926470cc8586aa /utils.c | |
| parent | 13e4a7cda59db29063efc5dad0823fe99ec7b764 (diff) | |
| parent | 1cb7b37ae6adb01444ea1466d8884aacca10ebd8 (diff) | |
Merge remote-tracking branch 'upstream/master' into curl-smtp
Diffstat (limited to 'utils.c')
| -rw-r--r-- | utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -318,6 +318,10 @@ int adduser(const char *uid) mkdirx(d); } + /* add a specially short data retention time for the relay */ + if (strcmp(uid, "relay") == 0) + config = xs_dict_set(config, "purge_days", xs_stock(1)); + xs *cfn = xs_fmt("%s/user.json", basedir); if ((f = fopen(cfn, "w")) == NULL) { |