From 57325b09f774c708da023946e58d32993fd77916 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 26 Sep 2022 12:10:11 +0200 Subject: [PATCH] Added direction to srv_archive() files. --- snac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {