From 628b46c2c4de1acd1aa9d8d8ee37239b843c08c4 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 19 Apr 2016 10:46:44 -0400 Subject: [PATCH] Delete old room info and banner files after import --- citadel/modules/upgrade/serv_upgrade.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/citadel/modules/upgrade/serv_upgrade.c b/citadel/modules/upgrade/serv_upgrade.c index d4cd4904b..d89bf3fd7 100644 --- a/citadel/modules/upgrade/serv_upgrade.c +++ b/citadel/modules/upgrade/serv_upgrade.c @@ -248,7 +248,7 @@ void iorarf_oneroom(char *roomname, char *infofile, char *picfile) } } fclose(fp); - // unlink(filename); + if (info_msgnum > 0) unlink(infofile); } // Test for the presence of a legacy "room picture file" and import it. @@ -279,7 +279,7 @@ void iorarf_oneroom(char *roomname, char *infofile, char *picfile) } } fclose(fp); - // unlink(filename); + if (pic_msgnum > 0) unlink(picfile); } // Now we have the message numbers of our new banner and icon. Record them in the room record. -- 2.30.2