From: Art Cancro Date: Tue, 19 Apr 2016 14:46:44 +0000 (-0400) Subject: Delete old room info and banner files after import X-Git-Tag: Release_902~34 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=628b46c2c4de1acd1aa9d8d8ee37239b843c08c4 Delete old room info and banner files after import --- 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.