--- src/dspam.c 2006-12-12 16:33:45.000000000 +0100 +++ src/dspam.c.new 2007-09-22 00:29:55.025347433 +0200 @@ -4014,6 +4014,7 @@ LOGDEBUG("sending firstrun.txt to %s (%s): %s", CTX->username, filename, strerror(errno)); send_notice(ATX, "firstrun.txt", ATX->mailer_args, CTX->username); + _ds_prepare_path_for(filename); file = fopen(filename, "w"); if (file) { fprintf(file, "%ld\n", (long) time(NULL)); @@ -4038,6 +4039,7 @@ LOGDEBUG("sending firstspam.txt to %s (%s): %s", CTX->username, filename, strerror(errno)); send_notice(ATX, "firstspam.txt", ATX->mailer_args, CTX->username); + _ds_prepare_path_for(filename); file = fopen(filename, "w"); if (file) { fprintf(file, "%ld\n", (long) time(NULL)); @@ -4063,6 +4065,7 @@ if (stat(qfile, &s)) { FILE *f; + _ds_prepare_path_for(qfile); f = fopen(qfile, "w"); if (f != NULL) { fprintf(f, "%ld", (long) time(NULL));