From 7cda7a2628e3cf188253816619ff01da8921ddc4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 30 Mar 2011 08:54:56 -0400 Subject: [PATCH] getuserattr(user, ...) will fall back to the "default" entry automatically, there's no need to check "default" manually. --HG-- branch : 1.7 --- aix.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.40.0