On Sun, Mar 8, 2020 at 5:20 AM <hero...@gentoo.org> wrote: > > From: Benda Xu <hero...@gentoo.org> > > Gentoo Prefix runs with a normal user and cannot grant extra > capabilities. Exit gracefully with a message. > > Signed-off-by: Benda Xu <hero...@gentoo.org> > --- > eclass/fcaps.eclass | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass > index 467f955f5e9a..ddc4d3ccc6d8 100644 > --- a/eclass/fcaps.eclass > +++ b/eclass/fcaps.eclass > @@ -78,6 +78,11 @@ DEPEND="filecaps? ( sys-libs/libcap )" > fcaps() { > debug-print-function ${FUNCNAME} "$@" > > + if [[ ${EUID} != 0 ]] ; then > + einfo "Insufficient privileges to execute ${FUNCNAME}, skip." > + return 0 > + fi > +
It seems like you are commanding the user to skip. s/skip/skipping/