From: Todd C. Miller Date: Wed, 30 Mar 2011 12:54:56 +0000 (-0400) Subject: getuserattr(user, ...) will fall back to the "default" entry X-Git-Tag: SUDO_1_7_6~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cda7a2628e3cf188253816619ff01da8921ddc4;p=sudo getuserattr(user, ...) will fall back to the "default" entry automatically, there's no need to check "default" manually. --HG-- branch : 1.7 --- diff --git a/aix.c b/aix.c index 51b395b69..873896e22 100644 --- 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; }