summaryrefslogtreecommitdiff
path: root/nocompile/libexec
diff options
context:
space:
mode:
authorEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-12-26 21:03:47 -0600
committerEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-12-26 21:03:47 -0600
commit01b8e693a95c1ee4377998e0589f6ec1b7be7267 (patch)
treec9e5e41c1dfd88445285846424b899c290874a62 /nocompile/libexec
parent9750d3845bd5bbc2e5e76134b8c4a902faa9bce9 (diff)
downloadmisc-01b8e693a95c1ee4377998e0589f6ec1b7be7267.tar.gz
misc-01b8e693a95c1ee4377998e0589f6ec1b7be7267.zip
deleted realpath because it is just readlink -f pretty much.
fixed gopherd to use readlink -f instead of realpath
Diffstat (limited to 'nocompile/libexec')
-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}