X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fupgrade%2Fserv_upgrade.c;fp=citadel%2Fmodules%2Fupgrade%2Fserv_upgrade.c;h=d89bf3fd71d57bcc2b13de9111f39cdbaf1408f1;hp=d4cd4904b81f380c3c62ffaa22d14972e5bbd94c;hb=628b46c2c4de1acd1aa9d8d8ee37239b843c08c4;hpb=5b75c8be92aec760921c1723d8dde74a3f63b1da 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.