Menu

#3781 remoteshell while clause can infinite loop

2.8.3
closed
remoteshell (4)
5
2013-10-29
2013-09-12
No

customer points out that when we have failure to be able to get the ssh host keys, the following clauses can infinite loop. We need to add some sort of loop limit.
MYCONT=cat /etc/ssh/ssh_host_dsa_key
while [ -z "$MYCONT" ]; do

.
.
.
MYCONT=cat /etc/ssh/ssh_host_rsa_key
while [ -z "$MYCONT" ]; do
.
.
.

MYCONT=cat /root/.ssh/id_rsa
while [ -z "$MYCONT" ]; do

Discussion

  • Lissa Valletta

    Lissa Valletta - 2013-09-16

    Fixed 2.8.3 remoteshell
    commit 219badd6f23cd24617a265016c307e8460cea41a

    Fixed 2.9
    commit 07397d277f50c6e94866dde62570fefab65507ef

     
  • Lissa Valletta

    Lissa Valletta - 2013-09-16
    • status: open --> pending
     
  • Lissa Valletta

    Lissa Valletta - 2013-10-29
    • status: pending --> closed
     
MongoDB Logo MongoDB