mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
14541: %# with capabilities prompt-expand to # iff Effective set non-empty or euid=0
This commit is contained in:
parent
84c856aa00
commit
23e2a3e5f8
@ -1,5 +1,8 @@
|
||||
2001-05-29 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 14541: %# with capabilities should prompt-expand to #
|
||||
iff (euid=0 or the Effective set is non-empty).
|
||||
|
||||
* 14538: cleaner _perl_config_vars from Matt Zimmerman.
|
||||
|
||||
* 14536: Completion/Debian/Command/_update-alternatives:
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user