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

Diff for /src/usr.bin/gencat/gencat.c between version 1.18 and 1.19

version 1.18, 2015/10/10 21:29:59 version 1.19, 2019/06/28 13:35:01
Line 155 
Line 155 
         catfile = *argv++;          catfile = *argv++;
   
         for (; *argv; argv++) {          for (; *argv; argv++) {
                 if ((ifd = open(*argv, O_RDONLY)) < 0)                  if ((ifd = open(*argv, O_RDONLY)) == -1)
                         err(1, "Unable to read %s", *argv);                          err(1, "Unable to read %s", *argv);
                 MCParse(ifd);                  MCParse(ifd);
                 close(ifd);                  close(ifd);
         }          }
   
         if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) < 0)          if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) == -1)
                 err(1, "Unable to create a new %s", catfile);                  err(1, "Unable to create a new %s", catfile);
         MCWriteCat(ofd);          MCWriteCat(ofd);
         exit(0);          exit(0);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19