Fix creation of node directories when using external editor
This commit is contained in:
parent
03ed402e71
commit
33dec973f1
@ -278,6 +278,12 @@ char *external_editor(int socket, struct user_record *user, char *to, char *from
|
|||||||
c = s_getc(socket);
|
c = s_getc(socket);
|
||||||
if (tolower(c) == 'y') {
|
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);
|
sprintf(buffer, "%s/node%d/MSGTMP", conf.bbs_path, mynode);
|
||||||
|
|
||||||
if (stat(buffer, &s) == 0) {
|
if (stat(buffer, &s) == 0) {
|
||||||
|
Reference in New Issue
Block a user