mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Added direction to srv_archive() files.
This commit is contained in:
parent
fd6f71bfe3
commit
57325b09f7
1 changed files with 1 additions and 1 deletions
2
snac.c
2
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) {
|
||||
|
|
Loading…
Reference in a new issue