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

Diff for /src/usr.bin/mail/lex.c between version 1.40 and 1.41

version 1.40, 2018/09/16 02:38:57 version 1.41, 2019/06/28 13:35:01
Line 72 
Line 72 
                 return(-1);                  return(-1);
         }          }
   
         if (fstat(fileno(ibuf), &stb) < 0) {          if (fstat(fileno(ibuf), &stb) == -1) {
                 warn("fstat");                  warn("fstat");
                 (void)Fclose(ibuf);                  (void)Fclose(ibuf);
                 return(-1);                  return(-1);
Line 108 
Line 108 
          * and set pointers.           * and set pointers.
          */           */
         readonly = 0;          readonly = 0;
         if ((i = open(name, O_WRONLY, 0)) < 0)          if ((i = open(name, O_WRONLY, 0)) == -1)
                 readonly++;                  readonly++;
         else          else
                 (void)close(i);                  (void)close(i);

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41