Stop using nonportable flags of readlink
authorWouter Verhelst <w@uter.be>
Wed, 4 Apr 2018 11:27:19 +0000 (13:27 +0200)
committerWouter Verhelst <w@uter.be>
Wed, 4 Apr 2018 11:27:19 +0000 (13:27 +0200)
"readlink -f" is a GNU extension. On OSX (where we try to run the test
suite, too, courtesy of travis CI) it does not exist.

Not sure why we ever added it in the first place (symlinks work, you
know) so just drop it entirely; there is no need to canonicalize things
here.

tests/run/simple_test

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