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

Diff for /src/usr.bin/sudo/Attic/visudo.c between version 1.25 and 1.26

version 1.25, 2009/04/11 11:48:06 version 1.26, 2009/04/19 00:09:00
Line 88 
Line 88 
 #include "version.h"  #include "version.h"
   
 #ifndef lint  #ifndef lint
 __unused static const char rcsid[] = "$Sudo: visudo.c,v 1.229 2009/04/05 16:25:04 millert Exp $";  __unused static const char rcsid[] = "$Sudo: visudo.c,v 1.231 2009/04/16 12:22:04 millert Exp $";
 #endif /* lint */  #endif /* lint */
   
 struct sudoersfile {  struct sudoersfile {
Line 711 
Line 711 
     error = parse_error;      error = parse_error;
     if (!quiet) {      if (!quiet) {
         if (parse_error)          if (parse_error)
             (void) printf("parse error in %s near line %d\n", sudoers_path,              (void) printf("parse error in %s near line %d\n", errorfile,
                 errorlineno);                  errorlineno);
         else          else
             (void) printf("%s: parsed OK\n", sudoers_path);              (void) printf("%s: parsed OK\n", sudoers_path);
Line 782 
Line 782 
             sudoerslist.last->next = entry;              sudoerslist.last->next = entry;
             sudoerslist.last = entry;              sudoerslist.last = entry;
         }          }
         if (keepopen != NULL)  
             *keepopen = TRUE;  
     } else {      } else {
         /* Already exists, open .tmp version if there is one. */          /* Already exists, open .tmp version if there is one. */
         if (entry->tpath != NULL) {          if (entry->tpath != NULL) {
Line 792 
Line 790 
         } else {          } else {
             if ((fp = fdopen(entry->fd, "r")) == NULL)              if ((fp = fdopen(entry->fd, "r")) == NULL)
                 error(1, "%s", entry->path);                  error(1, "%s", entry->path);
               rewind(fp);
         }          }
     }      }
       if (keepopen != NULL)
           *keepopen = TRUE;
     return(fp);      return(fp);
 }  }
   

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26