Skip to content

Commit

Permalink
fcaps.eclass: don't assume D and ROOT end with a slash
Browse files Browse the repository at this point in the history
  • Loading branch information
floppym committed May 8, 2018
1 parent 6ce43ba commit 06ac51c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eclass/fcaps.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ fcaps() {
root=${EROOT:-${ROOT}}
;;
esac
root=${root%/}

# Process every file!
local file
for file ; do
[[ ${file} != /* ]] && file="${root}${file}"
[[ ${file} != /* ]] && file="${root}/${file}"

if use filecaps ; then
# Try to set capabilities. Ignore errors when the
Expand Down

0 comments on commit 06ac51c

Please sign in to comment.