Fix path lookup stuff
authorWouter Verhelst <w@uter.be>
Wed, 4 Apr 2018 12:01:44 +0000 (14:01 +0200)
committerWouter Verhelst <w@uter.be>
Wed, 4 Apr 2018 12:01:44 +0000 (14:01 +0200)
We actually do need to pass non-symlinked stuff, just can't use readlink for
it. Use realpath, which is the portable alternative, instead.

tests/run/simple_test

index 2d53824..4d057b4 100755 (executable)
@@ -10,7 +10,7 @@ conffile=${tmpdir}/nbd.conf
 pidfile=${tmpdir}/nbd.pid
 tmpnam=${tmpdir}/nbd.dd
 mydir=$(dirname $0)
-certdir="${mydir}/certs"
+certdir=$(realpath ${mydir}/certs)
 cleanup="$2"
 PID=""