From: Clint Adams <clint@zsh.org>
To: Zefram <zefram@fysh.org>
Cc: zsh-workers@sunsite.dk, 98475-forwarded@bugs.debian.org
Subject: PATCH: Re: prompt expansion and POSIX.1e capabilities
Date: Tue, 29 May 2001 11:04:27 -0400 [thread overview]
Message-ID: <20010529110427.A642@dman.com> (raw)
In-Reply-To: <E152h7b-0007Ae-00@crucigera.fysh.org>; from zefram@fysh.org on Wed, May 23, 2001 at 11:28:51PM +0100
> It appears that the best logic to implement is, as you suggest, to
> generate the "#" prompt iff the Effective set is non-empty. Another
> possibility is to check both the Effective and Permitted sets; the
> Permitted set is effectively `saved capabilities', with similar semantics
> to saved UIDs. However, the non-capability logic doesn't look for a saved
> root UID, so I think we should not be looking for Permitted capabilities.
Index: Src/utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.29
diff -u -r1.29 utils.c
--- Src/utils.c 2001/05/23 08:53:12 1.29
+++ Src/utils.c 2001/05/29 14:59:00
@@ -3667,11 +3667,7 @@
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);
}
}
prev parent reply other threads:[~2001-05-29 15:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-23 16:05 Clint Adams
2001-05-23 22:28 ` Zefram
2001-05-29 15:04 ` Clint Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010529110427.A642@dman.com \
--to=clint@zsh.org \
--cc=98475-forwarded@bugs.debian.org \
--cc=zefram@fysh.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).