diff options
author | Yang Tse <yangsita@gmail.com> | 2008-04-04 14:47:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-04-04 14:47:32 +0000 |
commit | 532d4b5106137d70810333fccdf8aebb186ca70a (patch) | |
tree | 97d0038aad52b26b73601597f3ad72d45c2576e3 /tests/sshserver.pl | |
parent | 5788719988617f6da188d8f7454b033ea6f5f27c (diff) | |
download | curl-532d4b5106137d70810333fccdf8aebb186ca70a.tar.gz |
SunSSH sshd ignores UsePrivilegeSeparation option
Diffstat (limited to 'tests/sshserver.pl')
-rw-r--r-- | tests/sshserver.pl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/sshserver.pl b/tests/sshserver.pl index 9af868c0e..564e61550 100644 --- a/tests/sshserver.pl +++ b/tests/sshserver.pl @@ -606,12 +606,11 @@ if(sshd_supports_opt('UsePAM','no')) { push @cfgarr, 'UsePAM no'; } -if($sshdid =~ /SunSSH/) { +if($sshdid =~ /OpenSSH/) { # http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6492415 - push @cfgarr, '# UsePrivilegeSeparation yes'; -} -elsif(sshd_supports_opt('UsePrivilegeSeparation','no')) { - push @cfgarr, 'UsePrivilegeSeparation no'; + if(sshd_supports_opt('UsePrivilegeSeparation','no')) { + push @cfgarr, 'UsePrivilegeSeparation no'; + } } if(sshd_supports_opt('VerifyReverseMapping','no')) { |