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

Diff for /src/usr.bin/fmt/fmt.c between version 1.30 and 1.31

version 1.30, 2013/11/26 13:18:55 version 1.31, 2015/10/05 06:17:05
Line 255 
Line 255 
   
         (void)setlocale(LC_CTYPE, "");          (void)setlocale(LC_CTYPE, "");
   
           if (tame("stdio rpath", NULL) == -1)
                   err(1, "tame");
   
         /* 1. Grok parameters. */          /* 1. Grok parameters. */
         while ((ch = getopt(argc, argv, "0123456789cd:hl:mnpst:w:")) != -1) {          while ((ch = getopt(argc, argv, "0123456789cd:hl:mnpst:w:")) != -1) {
                 switch (ch) {                  switch (ch) {
Line 337 
Line 340 
                 while (argc-- > 0)                  while (argc-- > 0)
                         process_named_file(*argv++);                          process_named_file(*argv++);
         } else {          } else {
                   if (tame("stdio", NULL) != 0)
                           err(1, "tame");
                 process_stream(stdin, "standard input");                  process_stream(stdin, "standard input");
         }          }
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31