Diff for /embedaddon/sudo/common/aix.c between versions 1.1.1.5 and 1.1.1.6

version 1.1.1.5, 2013/10/14 07:56:33 version 1.1.1.6, 2014/06/15 16:12:54
Line 31 Line 31
 #include <usersec.h>  #include <usersec.h>
 #include <uinfo.h>  #include <uinfo.h>
   
   #define DEFAULT_TEXT_DOMAIN     "sudo"
   #include "gettext.h"            /* must be included before missing.h */
   
 #include "missing.h"  #include "missing.h"
 #include "alloc.h"  #include "alloc.h"
 #include "fatal.h"  #include "fatal.h"
 #include "sudo_debug.h"  #include "sudo_debug.h"
   #include "sudo_util.h"
   
 #define DEFAULT_TEXT_DOMAIN     "sudo"  
 #include "gettext.h"  
   
 #ifdef HAVE_GETUSERATTR  #ifdef HAVE_GETUSERATTR
   
 #ifndef HAVE_SETRLIMIT64  #ifndef HAVE_SETRLIMIT64
Line 90  aix_setlimits(char *user) Line 91  aix_setlimits(char *user)
     debug_decl(aix_setlimits, SUDO_DEBUG_UTIL)      debug_decl(aix_setlimits, SUDO_DEBUG_UTIL)
   
     if (setuserdb(S_READ) != 0)      if (setuserdb(S_READ) != 0)
        fatal("unable to open userdb");        fatal(U_("unable to open userdb"));
   
     /*      /*
      * For each resource limit, get the soft/hard values for the user       * For each resource limit, get the soft/hard values for the user
Line 147  aix_setauthdb(char *user) Line 148  aix_setauthdb(char *user)
   
     if (user != NULL) {      if (user != NULL) {
         if (setuserdb(S_READ) != 0)          if (setuserdb(S_READ) != 0)
            fatal(_("unable to open userdb"));            fatal(U_("unable to open userdb"));
         if (getuserattr(user, S_REGISTRY, &registry, SEC_CHAR) == 0) {          if (getuserattr(user, S_REGISTRY, &registry, SEC_CHAR) == 0) {
             if (setauthdb(registry, NULL) != 0)              if (setauthdb(registry, NULL) != 0)
                fatal(_("unable to switch to registry \"%s\" for %s"),                fatal(U_("unable to switch to registry \"%s\" for %s"),
                     registry, user);                      registry, user);
         }          }
         enduserdb();          enduserdb();
Line 167  aix_restoreauthdb(void) Line 168  aix_restoreauthdb(void)
     debug_decl(aix_setauthdb, SUDO_DEBUG_UTIL)      debug_decl(aix_setauthdb, SUDO_DEBUG_UTIL)
   
     if (setauthdb(NULL, NULL) != 0)      if (setauthdb(NULL, NULL) != 0)
        fatal(_("unable to restore registry"));        fatal(U_("unable to restore registry"));
   
     debug_return;      debug_return;
 }  }

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


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