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

Diff for /src/usr.bin/csplit/csplit.c between version 1.7 and 1.8

version 1.7, 2015/10/09 01:37:07 version 1.8, 2015/10/11 17:43:03
Line 143 
Line 143 
         if (strcmp(infn, "-") == 0) {          if (strcmp(infn, "-") == 0) {
                 infile = stdin;                  infile = stdin;
                 infn = "stdin";                  infn = "stdin";
                 if (pledge("stdio wpath cpath", NULL) == -1)  
                         err(1, "pledge");  
         } else if ((infile = fopen(infn, "r")) == NULL)          } else if ((infile = fopen(infn, "r")) == NULL)
                 err(1, "%s", infn);                  err(1, "%s", infn);
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8