diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-07-08 17:36:48 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-07-08 17:36:48 +0000 |
commit | 84fd7176a36e02c4d2b78c62cd21f730fb4e1aa2 (patch) | |
tree | 78784e5683f13d8e5ffe10931f339ad71cb4a920 /regress | |
parent | 8c67d4728e97afe4a2c2354af1ac04d2969fef51 (diff) |
Make readlink -f work in a POSIXly correct way.
Discussed with halex@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/ftp/dasho.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/regress/usr.bin/ftp/dasho.sh b/regress/usr.bin/ftp/dasho.sh index 49c3f3f75de..0197038d7ea 100644 --- a/regress/usr.bin/ftp/dasho.sh +++ b/regress/usr.bin/ftp/dasho.sh @@ -1,10 +1,9 @@ #!/bin/sh -# $OpenBSD: dasho.sh,v 1.2 2016/09/28 11:46:45 bluhm Exp $ +# $OpenBSD: dasho.sh,v 1.3 2018/07/08 17:36:47 martijn Exp $ : ${FTP:=ftp} -tmpdir=$(readlink -f temp) && -mkdir $tmpdir || exit 1 +mkdir temp && tmpdir=$(readlink -f temp) || exit 1 trap 'rm -rf "$tmpdir"' EXIT trap 'rm -rf "$tmpdir"; exit 1' INT HUP TERM |