[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.5 and 1.6

version 1.5, 2014/05/20 01:25:23 version 1.6, 2015/10/07 03:50:10
Line 103 
Line 103 
   
         setlocale(LC_ALL, "");          setlocale(LC_ALL, "");
   
           if (tame("stdio rpath wpath cpath", NULL) == -1)
                   err(1, "tame");
   
         kflag = sflag = 0;          kflag = sflag = 0;
         prefix = "xx";          prefix = "xx";
         sufflen = 2;          sufflen = 2;
Line 140 
Line 143 
         if (strcmp(infn, "-") == 0) {          if (strcmp(infn, "-") == 0) {
                 infile = stdin;                  infile = stdin;
                 infn = "stdin";                  infn = "stdin";
                   if (tame("stdio wpath cpath", NULL) == -1)
                           err(1, "tame");
         } 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.5  
changed lines
  Added in v.1.6