Diff for /embedaddon/sudo/common/sudo_conf.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/05/29 12:26:49 version 1.1.1.2, 2012/10/09 09:29:52
Line 292  void Line 292  void
 sudo_conf_read(void)  sudo_conf_read(void)
 {  {
     struct sudo_conf_table *cur;      struct sudo_conf_table *cur;
     struct plugin_info *info;  
     struct stat sb;      struct stat sb;
     FILE *fp;      FILE *fp;
     char *cp;      char *cp;
Line 346  sudo_conf_read(void) Line 345  sudo_conf_read(void)
         }          }
     }      }
     fclose(fp);      fclose(fp);
   
 done:  done:
    if (tq_empty(&sudo_conf_data.plugins)) {    return;
        /* Default policy plugin */ 
        info = ecalloc(1, sizeof(*info)); 
        info->symbol_name = "sudoers_policy"; 
        info->path = SUDOERS_PLUGIN; 
        /* info->options = NULL; */ 
        info->prev = info; 
        /* info->next = NULL; */ 
        tq_append(&sudo_conf_data.plugins, info); 
 
        /* Default I/O plugin */ 
        info = ecalloc(1, sizeof(*info)); 
        info->symbol_name = "sudoers_io"; 
        info->path = SUDOERS_PLUGIN; 
        /* info->options = NULL; */ 
        info->prev = info; 
        /* info->next = NULL; */ 
        tq_append(&sudo_conf_data.plugins, info); 
    } 
 }  }

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>