[openssh-commits] [openssh] 01/01: fix key-options.sh on platforms without openpty(3)

git+noreply at mindrot.org git+noreply at mindrot.org
Fri May 11 14:06:35 AEST 2018


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 54268d589e85ecc43d3eba8d83f327bdada9d696
Author: Damien Miller <djm at mindrot.org>
Date:   Fri May 11 14:04:40 2018 +1000

    fix key-options.sh on platforms without openpty(3)
    
    Skip the pty tests if the platform lacks openpty(3) and has to chown(2)
    the pty device explicitly. This typically requires root permissions that
    this test lacks.
    
    bz#2856 ok dtucker@
---
 regress/key-options.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/regress/key-options.sh b/regress/key-options.sh
index d680737c..78d1adc7 100644
--- a/regress/key-options.sh
+++ b/regress/key-options.sh
@@ -27,6 +27,7 @@ expect_pty_succeed() {
 	rm -f $OBJ/data
 	sed "s/.*/$opts &/" $origkeys >$authkeys
 	verbose "key option pty $which"
+	config_defined HAVE_OPENPTY || verbose "skipped for no openpty(3)"
 	${SSH} -ttq -F $OBJ/ssh_proxy somehost "tty > $OBJ/data; exit 0"
 	if [ $? -ne 0 ] ; then
 		fail "key option failed $which"
@@ -44,6 +45,7 @@ expect_pty_fail() {
 	rm -f $OBJ/data
 	sed "s/.*/$opts &/" $origkeys >$authkeys
 	verbose "key option pty $which"
+	config_defined HAVE_OPENPTY || verbose "skipped for no openpty(3)"
 	${SSH} -ttq -F $OBJ/ssh_proxy somehost "tty > $OBJ/data; exit 0"
 	if [ $? -eq 0 ]; then
 		r=`cat $OBJ/data`

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list