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

Diff for /src/usr.bin/ctfconv/ctfconv.c between version 1.5 and 1.6

version 1.5, 2017/08/11 19:34:24 version 1.6, 2017/08/11 20:49:26
Line 93 
Line 93 
   
         setlocale(LC_ALL, "");          setlocale(LC_ALL, "");
   
           if (pledge("stdio rpath wpath cpath", NULL) == -1)
                   err(1, "pledge");
   
         while ((ch = getopt(argc, argv, "dl:o:")) != -1) {          while ((ch = getopt(argc, argv, "dl:o:")) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'd':                  case 'd':
Line 129 
Line 132 
         if (error != 0)          if (error != 0)
                 return error;                  return error;
   
           if (outfile != NULL) {
                   if (pledge("stdio wpath cpath", NULL) == -1)
                           err(1, "pledge");
   
                   error = generate(outfile, label, 1);
                   if (error != 0)
                           return error;
           }
   
         if (dump) {          if (dump) {
                   if (pledge("stdio", NULL) == -1)
                           err(1, "pledge");
   
                 int fidx = -1, oidx = -1;                  int fidx = -1, oidx = -1;
   
                 TAILQ_FOREACH(it, &iobjq, it_symb)                  TAILQ_FOREACH(it, &iobjq, it_symb)
Line 148 
Line 163 
                 }                  }
   
                 return 0;                  return 0;
         }  
   
         if (outfile != NULL) {  
                 error = generate(outfile, label, 1);  
                 if (error != 0)  
                         return error;  
         }          }
   
         return 0;          return 0;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6