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

Diff for /src/usr.bin/uniq/uniq.c between version 1.19 and 1.20

version 1.19, 2013/11/26 19:25:39 version 1.20, 2015/10/03 02:18:20
Line 61 
Line 61 
         int ch;          int ch;
         char *prevline, *thisline;          char *prevline, *thisline;
   
           if (tame("stdio rpath wpath cpath", NULL) == -1)
                   err(1, "tame");
   
         obsolete(argv);          obsolete(argv);
         while ((ch = getopt(argc, argv, "cdf:s:u")) != -1) {          while ((ch = getopt(argc, argv, "cdf:s:u")) != -1) {
                 const char *errstr;                  const char *errstr;
Line 118 
Line 121 
         default:          default:
                 usage();                  usage();
         }          }
   
           if (tame("stdio", NULL) != 0)
                   err(1, "tame");
   
         prevline = malloc(MAXLINELEN);          prevline = malloc(MAXLINELEN);
         thisline = malloc(MAXLINELEN);          thisline = malloc(MAXLINELEN);

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