summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTar Committer <tar@ocjtech.us>2001-08-15 21:16:40 +0000
committerTar Committer <tar@ocjtech.us>2001-08-15 21:16:40 +0000
commit10cc9157892d7902dddde70a5b9b2046d0c376ea (patch)
treef962debc7088fc42948848cd9e6ad05db4a4cd69 /bin
parentd19de03be4d4ad086ab9446e4196afdd6891fb79 (diff)
downloadrancid-10cc9157892d7902dddde70a5b9b2046d0c376ea.tar.gz
rancid-10cc9157892d7902dddde70a5b9b2046d0c376ea.tar.xz
rancid-10cc9157892d7902dddde70a5b9b2046d0c376ea.zip
Imported from rancid-2.2b7.tar.gz.rancid-2.2b7
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brancid.in8
-rwxr-xr-xbin/do-diffs.in4
-rwxr-xr-xbin/jlogin.in8
3 files changed, 12 insertions, 8 deletions
diff --git a/bin/brancid.in b/bin/brancid.in
index 5614ccc..6beb78f 100755
--- a/bin/brancid.in
+++ b/bin/brancid.in
@@ -140,8 +140,12 @@ sub ShowConfig {
last if (/^$prompt/);
next if (/^(\s*|\s*$cmd\s*)$/);
next if (/^Reading configuration information/);
- return(1) if /(Invalid input detected|Type help or )/;
- return(-1) if (/command authorization failed/i);
+ if (/community label /) {
+ if (defined($ENV{'NOCOMMSTR'})) {
+ $_ =~ s/community label .*$/community label <removed>/;
+ }
+ }
+ return(1) if /(invalid command name)/;
ProcessHistory("","","","$_");
}
# ProcessHistory("","","","!$_");
diff --git a/bin/do-diffs.in b/bin/do-diffs.in
index e5d1f62..940203f 100755
--- a/bin/do-diffs.in
+++ b/bin/do-diffs.in
@@ -69,13 +69,13 @@ END
rm -f $TMPDIR/.$GROUP.old
else
- trap 'rm -fr $LOCKFILE;exit 1' 1 2 3 6 10 11 15
+ trap 'rm -fr $LOCKFILE;exit 1' 1 2 3 6 10 15
touch $LOCKFILE
if [ $? -eq 0 ] ; then
control_rancid $GROUP
rm -f $LOCKFILE
fi
- trap '' 1 2 3 6 10 11 15
+ trap '' 1 2 3 6 10 15
fi
echo
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" == "" } {