summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-26 12:10:11 +0200
committerdefault <nobody@localhost>2022-09-26 12:10:11 +0200
commit57325b09f774c708da023946e58d32993fd77916 (patch)
treea6090d55c5ef246259c1e8396260b21312abf245 /snac.c
parentfd6f71bfe36331d046e4183c2c133c6f01c9af2d (diff)
Added direction to srv_archive() files.
Diffstat (limited to 'snac.c')
-rw-r--r--snac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/snac.c b/snac.c
index 2c350bb..2a694ee 100644
--- a/snac.c
+++ b/snac.c
@@ -143,7 +143,7 @@ void srv_archive(char *direction, char *req, char *payload, int p_size,
{
/* obsessive archiving */
xs *date = tid(0);
- xs *dir = xs_fmt("%s/archive/%s", srv_basedir, date);
+ xs *dir = xs_fmt("%s/archive/%s_%s", srv_basedir, date, direction);
FILE *f;
if (mkdir(dir, 0755) != -1) {