]> code.citadel.org Git - citadel.git/commitdiff
* rooms.c: use mkfifo(3) instead of system("mkfifo")
authorNathan Bryant <loanshark@uncensored.citadel.org>
Fri, 9 Oct 1998 03:51:35 +0000 (03:51 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Fri, 9 Oct 1998 03:51:35 +0000 (03:51 +0000)
citadel/ChangeLog
citadel/rooms.c

index 62ffe0e6735f0865fee07707f13a9fc21acdb518..cfb2f1198f3bcfa98e1b17c7a63d60ca62821249 100644 (file)
@@ -16,6 +16,7 @@ Thu Oct  8 15:34:45 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
          bzero()
        * dynloader.c, dynloader.h, messages.c, server.h, sysdep.c,
          sysdep_decls.h: function pointer/prototyping fixes
+       * rooms.c: use mkfifo(3) instead of system("mkfifo")
 
 1998-10-07 Nathan Bryant <bryant@cs.usm.maine.edu>
        * snprintf.c, snprintf.h: new files
index d16e43e3326cc91e17321c4e72461a48cab85e8c..5609710e9d3e462eb1203f11137c4eb5ae1065f5 100644 (file)
@@ -484,12 +484,8 @@ void download(int proto)
 
 
        mkdir(tempdir,0700);
-#ifdef USE_MKFIFO
-       sprintf(buf,"mkfifo %s/%s",tempdir,filename);
-#else
-       sprintf(buf,"mknod %s/%s p",tempdir,filename);
-#endif
-       system(buf);
+       sprintf(buf,"%s/%s",tempdir,filename);
+       mkfifo(buf, 0777);
 
        /* We do the remainder of this function as a separate process in
         * order to allow recovery if the transfer is aborted.  If the