[BACK]Return to message.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rdist

Diff for /src/usr.bin/rdist/message.c between version 1.5 and 1.6

version 1.5, 1996/07/25 05:31:02 version 1.6, 1996/07/29 17:50:09
Line 449 
Line 449 
         int flags;          int flags;
         char *msgbuf;          char *msgbuf;
 {  {
         int fd;  
   
         if (IS_ON(flags, MT_DEBUG))          if (IS_ON(flags, MT_DEBUG))
                 return;                  return;
   
Line 460 
Line 458 
         if (!msgfac->mf_fptr) {          if (!msgfac->mf_fptr) {
                 register char *cp;                  register char *cp;
                 char *getenv();                  char *getenv();
                   int fd;
   
                 /*                  /*
                  * Create and open a new temporary file                   * Create and open a new temporary file
Line 472 
Line 471 
   
                 msgfac->mf_filename = tempfile;                  msgfac->mf_filename = tempfile;
                 if ((fd = mkstemp(msgfac->mf_filename)) == -1 ||                  if ((fd = mkstemp(msgfac->mf_filename)) == -1 ||
                     (msgfac->mf_fptr = fdopen(fd, "w"))==NULL) {                      (msgfac->mf_fptr = fdopen(fd, "w")) == NULL) {
                         if (fd != -1)                          if (fd != -1)
                                 close(fd);                                  close(fd);
                         fatalerr("Cannot open notify file for writing: %s: %s.",                          fatalerr("Cannot open notify file for writing: %s: %s.",

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6