diff options
author | unknown <unknown@unknown> | 2008-12-17 03:43:51 +0000 |
---|---|---|
committer | unknown <unknown@unknown> | 2008-12-17 03:43:51 +0000 |
commit | 09f0f026fd4931b90016d0090778983da01c294a (patch) | |
tree | d47c450de794595ce6395bde6ff084d75dac48a4 /bin/rivlogin.in | |
parent | b73f299e731fbddae095c0b5eff04717b6dce1af (diff) | |
download | rancid-09f0f026fd4931b90016d0090778983da01c294a.tar.gz rancid-09f0f026fd4931b90016d0090778983da01c294a.tar.xz rancid-09f0f026fd4931b90016d0090778983da01c294a.zip |
Imported from rancid-2.3.2a9.tar.gz.rancid-2.3.2a9
Diffstat (limited to 'bin/rivlogin.in')
-rw-r--r-- | bin/rivlogin.in | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/rivlogin.in b/bin/rivlogin.in index 7a65986..b9ca2bc 100644 --- a/bin/rivlogin.in +++ b/bin/rivlogin.in @@ -3,7 +3,7 @@ ## $Id$ ## ## @PACKAGE@ @VERSION@ -## Copyright (c) 1997-2007 by Terrapin Communications, Inc. +## Copyright (c) 1997-2008 by Terrapin Communications, Inc. ## All rights reserved. ## ## This code is derived from software contributed to and maintained by @@ -255,7 +255,7 @@ proc login { router user userpswd passwd enapasswd } { "Password:" { incr pass_attempt - send "$passwd\r" + send -- "$passwd\r" exp_continue } @@ -263,16 +263,16 @@ proc login { router user userpswd passwd enapasswd } { set pattempt 0 - send "$user\r" + send -- "$user\r" expect { "Password: " { incr pattempt if {$pattempt == 1} { - send "$userpswd\r"; + send -- "$userpswd\r"; } else { - send "$enapasswd\r"; + send -- "$enapasswd\r"; } exp_continue } @@ -418,14 +418,14 @@ proc do_enable { enauser enapasswd userpswd } { expect { Username: { set uses_username 1; - send "$enauser\r"; + send -- "$enauser\r"; exp_continue } Password: { if {$uses_username == 1} { - send "$userpswd\r"; + send -- "$userpswd\r"; } else { - send "$enapasswd\r"; + send -- "$enapasswd\r"; } exp_continue } @@ -435,7 +435,7 @@ proc do_enable { enauser enapasswd userpswd } { return 1 } - "CONS-W-AUTH_PASSWD" { send "$enapasswd\r"; } + "CONS-W-AUTH_PASSWD" { send -- "$enapasswd\r"; } "$enable_prompt " { } "%SYS-W-NOPASSWD*" { } |