]> code.citadel.org Git - citadel.git/blobdiff - citadel/aidepost.c
* Numerous warning fixes and cleanups for compile on Linux for IBM S/390
[citadel.git] / citadel / aidepost.c
index c7a7265c60787eb995c01b9dea6e5d641cf2be38..56f5781347f8106510a7af5ff4fb014dd3e4a4ed 100644 (file)
@@ -101,7 +101,10 @@ int main(int argc, char **argv)
                "./network/spoolin/ap.%04x",
                getpid());
 
-       tempfp = tmpfile();
+       unlink(tempspool);
+
+       tempfp = fopen(tempspool, "w+b");
+       unlink(tempspool);
        if (tempfp == NULL) {
                perror("cannot open temp file");
                exit(errno);