]> granicus.if.org Git - sudo/commitdiff
getuserattr(user, ...) will fall back to the "default" entry
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 30 Mar 2011 12:54:56 +0000 (08:54 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 30 Mar 2011 12:54:56 +0000 (08:54 -0400)
automatically, there's no need to check "default" manually.

--HG--
branch : 1.7

aix.c

diff --git a/aix.c b/aix.c
index 51b395b6976183d79319b10a0dcebd80e679761c..873896e22c77f5b6e19b0cd535245d3cf3c2bbee 100644 (file)
--- a/aix.c
+++ b/aix.c
@@ -73,10 +73,8 @@ aix_getlimit(user, lim, valp)
 {
     int val;
 
-    if (getuserattr(user, lim, &val, SEC_INT) != 0 &&
-       getuserattr("default", lim, &val, SEC_INT) != 0) {
+    if (getuserattr(user, lim, &val, SEC_INT) != 0)
        return -1;
-    }
     *valp = val;
     return 0;
 }