}
-
/*
* Per-room callback function for ingest_old_roominfo_and_roompic_files()
*
long pic_msgnum = 0;
char subject[SIZ];
- syslog(LOG_DEBUG, "iorarf_oneroom( %s , %s , %s )", roomname, infofile, picfile);
-
// Test for the presence of a legacy "room info file"
if (!IsEmptyStr(infofile)) {
fp = fopen(infofile, "r");
}
}
fclose(fp);
- // unlink(filename);
+ if (info_msgnum > 0) unlink(infofile);
}
// Test for the presence of a legacy "room picture file" and import it.
}
}
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.
}
-
struct iorarf_list {
struct iorarf_list *next;
char name[ROOMNAMELEN];