Gentoo Prefix runs with a normal user and cannot grant extra
capabilities. Exit gracefully with a message.
Reference: https://archives.gentoo.org/gentoo-dev/message/
4207cffd6b875450bb2fdbcf1b076053
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
fcaps() {
debug-print-function ${FUNCNAME} "$@"
+ if [[ ${EUID} != 0 ]] ; then
+ einfo "Insufficient privileges to execute ${FUNCNAME}, skipping."
+ return 0
+ fi
+
# Process the user options first.
local owner='root'
local group='0'