diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-09-28 11:46:46 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-09-28 11:46:46 +0000 |
commit | 5e9f938bd5ca1b95b0dfe3339e4676c8d90ee439 (patch) | |
tree | 264856bde5a6833fcc0736c2368c9bc704bea782 /regress | |
parent | fcfffc5bfb12fb3f0e11de73b7f135cf9ac7f164 (diff) |
Do not close stdout when starting netcat, redirect to /dev/null
instead. This prevents that the ftp test hangs in nc poll(2). Add
OpenBSD RCS id while there.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/ftp/dasho.sh | 1 | ||||
-rw-r--r-- | regress/usr.bin/ftp/redirect.sh | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/regress/usr.bin/ftp/dasho.sh b/regress/usr.bin/ftp/dasho.sh index 13dc37a08f9..49c3f3f75de 100644 --- a/regress/usr.bin/ftp/dasho.sh +++ b/regress/usr.bin/ftp/dasho.sh @@ -1,4 +1,5 @@ #!/bin/sh +# $OpenBSD: dasho.sh,v 1.2 2016/09/28 11:46:45 bluhm Exp $ : ${FTP:=ftp} diff --git a/regress/usr.bin/ftp/redirect.sh b/regress/usr.bin/ftp/redirect.sh index 6e365d2e56f..63019d66ae7 100644 --- a/regress/usr.bin/ftp/redirect.sh +++ b/regress/usr.bin/ftp/redirect.sh @@ -1,4 +1,5 @@ #!/bin/sh +# $OpenBSD: redirect.sh,v 1.2 2016/09/28 11:46:45 bluhm Exp $ : ${FTP:=ftp} @@ -14,7 +15,7 @@ echo "Testing $req1 => $loc => $req2" # Be sure to kill any previous nc running on our port while pkill -fx "nc -l $rport1" && sleep 1; do done -echo "HTTP/1.0 302 Found\r\nLocation: $loc\r\n\r" | nc -l $rport1 >&- & +echo "HTTP/1.0 302 Found\r\nLocation: $loc\r\n\r" | nc -l $rport1 >/dev/null & # Give the "server" some time to start sleep .1 |