Fix creation of node directories when using external editor

This commit is contained in:
Andrew Pamment 2016-04-15 21:11:47 +10:00
parent 03ed402e71
commit 33dec973f1

View File

@ -278,6 +278,12 @@ char *external_editor(int socket, struct user_record *user, char *to, char *from
c = s_getc(socket);
if (tolower(c) == 'y') {
sprintf(buffer, "%s/node%d", conf.bbs_path, mynode);
if (stat(buffer, &s) != 0) {
mkdir(buffer, 0755);
}
sprintf(buffer, "%s/node%d/MSGTMP", conf.bbs_path, mynode);
if (stat(buffer, &s) == 0) {