Diff for /embedaddon/sudo/plugins/sudoers/sudo_nss.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2013/07/22 10:46:12 version 1.1.1.5, 2013/10/14 07:56:35
Line 262  output(const char *buf) Line 262  output(const char *buf)
   
 /*  /*
  * Print out privileges for the specified user.   * Print out privileges for the specified user.
 * We only get here if the user is allowed to run something on this host. * We only get here if the user is allowed to run something.
  */   */
 void  void
 display_privs(struct sudo_nss_list *snl, struct passwd *pw)  display_privs(struct sudo_nss_list *snl, struct passwd *pw)
Line 280  display_privs(struct sudo_nss_list *snl, struct passwd Line 280  display_privs(struct sudo_nss_list *snl, struct passwd
     lbuf_init(&privs, output, 8, NULL, cols);      lbuf_init(&privs, output, 8, NULL, cols);
   
     /* Display defaults from all sources. */      /* Display defaults from all sources. */
    lbuf_append(&defs, _("Matching Defaults entries for %s on this host:\n"),    lbuf_append(&defs, _("Matching Defaults entries for %s on %s:\n"),
        pw->pw_name);        pw->pw_name, user_srunhost);
     count = 0;      count = 0;
     tq_foreach_fwd(snl, nss) {      tq_foreach_fwd(snl, nss) {
         count += nss->display_defaults(nss, pw, &defs);          count += nss->display_defaults(nss, pw, &defs);
Line 306  display_privs(struct sudo_nss_list *snl, struct passwd Line 306  display_privs(struct sudo_nss_list *snl, struct passwd
   
     /* Display privileges from all sources. */      /* Display privileges from all sources. */
     lbuf_append(&privs,      lbuf_append(&privs,
        _("User %s may run the following commands on this host:\n"),        _("User %s may run the following commands on %s:\n"),
        pw->pw_name);        pw->pw_name, user_srunhost);
     count = 0;      count = 0;
     tq_foreach_fwd(snl, nss) {      tq_foreach_fwd(snl, nss) {
         count += nss->display_privs(nss, pw, &privs);          count += nss->display_privs(nss, pw, &privs);

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


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