From 23e2a3e5f894c06203de2c2377dad81c9a37d01d Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 29 May 2001 15:09:06 +0000 Subject: 14541: %# with capabilities prompt-expand to # iff Effective set non-empty or euid=0 --- Src/utils.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Src') diff --git a/Src/utils.c b/Src/utils.c index 3c169f066..6bede2e43 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3667,11 +3667,7 @@ privasserted(void) cap_flag_value_t val; cap_value_t n; for(n = 0; !cap_get_flag(caps, n, CAP_EFFECTIVE, &val); n++) - if(val || - (!cap_get_flag(caps, n, CAP_INHERITABLE, &val) && val)) { - cap_free(caps); - return 1; - } + if(val) return 1; cap_free(caps); } } -- cgit 1.4.1