summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2023-04-21 21:39:44 +0300
committerViorel Munteanu <ceamac@gentoo.org>2023-04-21 21:42:27 +0300
commit9b8f1bdd06804c267aeb83ea4566684cd3095237 (patch)
tree56cc49632376e86dc16b7aaf85d985e272a64143 /app-emulation
parentnet-im/zoom: drop 5.14.0.1720 (diff)
downloadgentoo-9b8f1bdd06804c267aeb83ea4566684cd3095237.tar.gz
gentoo-9b8f1bdd06804c267aeb83ea4566684cd3095237.tar.bz2
gentoo-9b8f1bdd06804c267aeb83ea4566684cd3095237.zip
app-emulation/virtualbox-modules: fix for empty KV_DIR
Closes: https://bugs.gentoo.org/904752 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/virtualbox-modules/virtualbox-modules-6.1.44.ebuild3
-rw-r--r--app-emulation/virtualbox-modules/virtualbox-modules-7.0.8.ebuild3
2 files changed, 4 insertions, 2 deletions
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.44.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.44.ebuild
index 9ecbdb504d37..bec6b95237b8 100644
--- a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.44.ebuild
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.44.ebuild
@@ -29,9 +29,10 @@ CONFIG_CHECK="~!SPINLOCK JUMP_LABEL"
# Check if the build directory exists and all directories above it have sane permissions
virtualbox_check_kv_dir() {
if [[ ! -d ${KV_DIR} ]]; then
+ [[ -z $a ]] && return 1
elog "Directory not found: ${KV_DIR}"
local a=$(dirname "${KV_DIR}")
- while [[ -n $a && $a != '/' ]]; do
+ while [[ -n $a && $a != '/' && $1 != '.' ]]; do
if [[ -d $a && ( ! -r $a || ! -x $a ) ]]; then
elog "Please check permissions of $a"
fi
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-7.0.8.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-7.0.8.ebuild
index b492291d280a..ed823a969cbf 100644
--- a/app-emulation/virtualbox-modules/virtualbox-modules-7.0.8.ebuild
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-7.0.8.ebuild
@@ -29,9 +29,10 @@ CONFIG_CHECK="~!SPINLOCK JUMP_LABEL"
# Check if the build directory exists and all directories above it have sane permissions
virtualbox_check_kv_dir() {
if [[ ! -d ${KV_DIR} ]]; then
+ [[ -z $a ]] && return 1
elog "Directory not found: ${KV_DIR}"
local a=$(dirname "${KV_DIR}")
- while [[ -n $a && $a != '/' ]]; do
+ while [[ -n $a && $a != '/' && $1 != '.' ]]; do
if [[ -d $a && ( ! -r $a || ! -x $a ) ]]; then
elog "Please check permissions of $a"
fi