Imported Upstream version 1.7.6p1
[debian/sudo] / aix.c
diff --git a/aix.c b/aix.c
index 5735ec97a0eb2f35b7b4e9c522b869cd6282d457..873896e22c77f5b6e19b0cd535245d3cf3c2bbee 100644 (file)
--- a/aix.c
+++ b/aix.c
@@ -31,7 +31,7 @@
 #include <usersec.h>
 #include <uinfo.h>
 
-#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