X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=aix.c;h=873896e22c77f5b6e19b0cd535245d3cf3c2bbee;hb=f3530d8198251b72d01da9a07b1fa518446ec0f0;hp=5735ec97a0eb2f35b7b4e9c522b869cd6282d457;hpb=a91c5f78701b90c47a08daa15569ef64c6194504;p=debian%2Fsudo diff --git a/aix.c b/aix.c index 5735ec9..873896e 100644 --- a/aix.c +++ b/aix.c @@ -31,7 +31,7 @@ #include #include -#include "compat.h" +#include "missing.h" #include "alloc.h" #include "error.h" @@ -73,12 +73,10 @@ aix_getlimit(user, lim, valp) { int val; - if (getuserattr(user, lim, &val, SEC_INT) != 0 && - getuserattr("default", lim, &val, SEC_INT) != 0) { - return(-1); - } + if (getuserattr(user, lim, &val, SEC_INT) != 0) + return -1; *valp = val; - return(0); + return 0; } static void