summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/etc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r--initrd/initrd-stuff/etc/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions
index 81308e4c..7357b982 100644
--- a/initrd/initrd-stuff/etc/functions
+++ b/initrd/initrd-stuff/etc/functions
@@ -133,8 +133,8 @@ if strinstr ":" "$rest" ; then
else
tmpval=$rest
rest="${rest#*/}"
- server="${tmpval%/*}"
path="${tmpval#*/}"
+ server="${tmpval%/$path}"
port=""
fi
# get path and query components - URI path, query