--- embedaddon/sudo/common/aix.c 2012/10/09 09:29:52 1.1.1.3 +++ embedaddon/sudo/common/aix.c 2013/10/14 07:56:33 1.1.1.5 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2010-2011 Todd C. Miller + * Copyright (c) 2008, 2010-2013 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -33,7 +33,7 @@ #include "missing.h" #include "alloc.h" -#include "error.h" +#include "fatal.h" #include "sudo_debug.h" #define DEFAULT_TEXT_DOMAIN "sudo" @@ -90,7 +90,7 @@ aix_setlimits(char *user) debug_decl(aix_setlimits, SUDO_DEBUG_UTIL) if (setuserdb(S_READ) != 0) - error(1, "unable to open userdb"); + fatal("unable to open userdb"); /* * For each resource limit, get the soft/hard values for the user @@ -147,10 +147,10 @@ aix_setauthdb(char *user) if (user != NULL) { if (setuserdb(S_READ) != 0) - error(1, _("unable to open userdb")); + fatal(_("unable to open userdb")); if (getuserattr(user, S_REGISTRY, ®istry, SEC_CHAR) == 0) { if (setauthdb(registry, NULL) != 0) - error(1, _("unable to switch to registry \"%s\" for %s"), + fatal(_("unable to switch to registry \"%s\" for %s"), registry, user); } enduserdb(); @@ -167,7 +167,7 @@ aix_restoreauthdb(void) debug_decl(aix_setauthdb, SUDO_DEBUG_UTIL) if (setauthdb(NULL, NULL) != 0) - error(1, _("unable to restore registry")); + fatal(_("unable to restore registry")); debug_return; }