summaryrefslogtreecommitdiffstats
path: root/bin/jlogin.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/jlogin.in')
-rwxr-xr-xbin/jlogin.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/jlogin.in b/bin/jlogin.in
index 9ff0626..ee49d31 100755
--- a/bin/jlogin.in
+++ b/bin/jlogin.in
@@ -95,9 +95,9 @@ for {set i 0} {$i < $argc} {incr i} {
# user Password
} -p* -
-P* {
- if {! [ regexp .\[pP\](.+) $arg ignore userpswd]} {
+ if {! [ regexp .\[pP\](.+) $arg ignore userpasswd]} {
incr i
- set userpswd [ lindex $argv $i ]
+ set userpasswd [ lindex $argv $i ]
}
set do_passwd 0
# passphrase
@@ -447,9 +447,9 @@ foreach router [lrange $argv $i end] {
}
# Figure out loginname's password (if different from the vty password)
- if {[info exists userpswd]} {
+ if {[info exists userpasswd]} {
# command line passwd
- set passwd $userpswd
+ set passwd $userpasswd
} else {
set userpswd [lindex [find userpassword $loginname@$router] 0]
if { "$userpswd" == "" } {