From 4068cd4315890593e0b374a5b4be8a96e19c4824 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 24 May 2018 20:53:56 +1000 Subject: [PATCH] Fix message filenames --- utils/mnetftn/mnettoftn.c | 4 ++-- utils/mnettoss/mnettoss.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/mnetftn/mnettoftn.c b/utils/mnetftn/mnettoftn.c index 3a31dff..914b3ab 100644 --- a/utils/mnetftn/mnettoftn.c +++ b/utils/mnetftn/mnettoftn.c @@ -462,9 +462,9 @@ int import(char *filename) { } } if (imhub) { - snprintf(buffer2, PATH_MAX, "%s/%d/%d-%s", baseoutdir, areas[areaid]->links[i], areas[areaid]->links[i], filename); + snprintf(buffer2, PATH_MAX, "%s/%d/%d-%s.message", baseoutdir, areas[areaid]->links[i], areas[areaid]->links[i], uuid); } else { - snprintf(buffer2, PATH_MAX, "%s/%d/%d-%s", baseoutdir, hubnode, areas[areaid]->links[i], filename); + snprintf(buffer2, PATH_MAX, "%s/%d/%d-%s.message", baseoutdir, hubnode, areas[areaid]->links[i], uuid); } copy_file(buffer, buffer2); } diff --git a/utils/mnettoss/mnettoss.c b/utils/mnettoss/mnettoss.c index b36f81e..6a028b4 100644 --- a/utils/mnettoss/mnettoss.c +++ b/utils/mnettoss/mnettoss.c @@ -427,9 +427,9 @@ int import(char *filename) { } } if (imhub) { - snprintf(buffer2, PATH_MAX, "%s/%d/%d-%s", baseoutdir, areas[areaid]->links[i], areas[areaid]->links[i], uuid); + snprintf(buffer2, PATH_MAX, "%s/%d/%d-%s.message", baseoutdir, areas[areaid]->links[i], areas[areaid]->links[i], uuid); } else { - snprintf(buffer2, PATH_MAX, "%s/%d/%d-%s", baseoutdir, hubnode, areas[areaid]->links[i], uuid); + snprintf(buffer2, PATH_MAX, "%s/%d/%d-%s.message", baseoutdir, hubnode, areas[areaid]->links[i], uuid); } copy_file(buffer, buffer2); }