summaryrefslogtreecommitdiff
path: root/nocompile
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile')
-rwxr-xr-xnocompile/libexec/gopherd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nocompile/libexec/gopherd.sh b/nocompile/libexec/gopherd.sh
index 57b3554..f627657 100755
--- a/nocompile/libexec/gopherd.sh
+++ b/nocompile/libexec/gopherd.sh
@@ -4,7 +4,7 @@ read -t 10 req
base="$1"
arg=$(echo "$req" | tr -d '\r' | cut -f2)
req=$(echo "$req" | tr -d '\r' | cut -f1)
-realpath="$(realpath "${base}${req}")"
+realpath="$(readlink -f "${base}${req}")"
if grep -v "^${base}" <<< "${realpath}" > /dev/null;then
echo ${base}
echo ${realpath}