1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 17:01:19 +02:00

14541: %# with capabilities prompt-expand to # iff Effective set non-empty or euid=0

This commit is contained in:
Clint Adams 2001-05-29 15:09:06 +00:00
parent 84c856aa00
commit 23e2a3e5f8
2 changed files with 4 additions and 5 deletions

@ -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);
}
}