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

Diff for /src/usr.bin/uuencode/uuencode.c between version 1.11 and 1.12

version 1.11, 2015/01/16 06:40:13 version 1.12, 2015/10/07 06:00:33
Line 98 
Line 98 
         argv += optind;          argv += optind;
         argc -= optind;          argc -= optind;
   
           if (argc == 2 || outfile) {
                   if (tame("stdio rpath wpath cpath", NULL) == -1)
                           err(1, "tame");
           } else {
                   if (tame("stdio", NULL) == -1)
                           err(1, "tame");
           }
   
         switch(argc) {          switch(argc) {
         case 2:                 /* optional first argument is input file */          case 2:                 /* optional first argument is input file */
                 if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb))                  if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb))

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12