summaryrefslogtreecommitdiffstats
path: root/bin/flogin.in
diff options
context:
space:
mode:
authorTar Committer <tar@ocjtech.us>2000-11-24 22:14:14 +0000
committerTar Committer <tar@ocjtech.us>2000-11-24 22:14:14 +0000
commit25c2b7c2c8a333b276c3499bcce004137d4b4fe0 (patch)
treebaad136bdfcea88812dd658a682f126d1af4dfc3 /bin/flogin.in
parent1651adc35224e149715bd85af4ba108c5ee184bc (diff)
downloadrancid-25c2b7c2c8a333b276c3499bcce004137d4b4fe0.tar.gz
rancid-25c2b7c2c8a333b276c3499bcce004137d4b4fe0.tar.xz
rancid-25c2b7c2c8a333b276c3499bcce004137d4b4fe0.zip
Imported from rancid-2.1b.tar.gz.rancid-2.1b
Diffstat (limited to 'bin/flogin.in')
-rwxr-xr-xbin/flogin.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/flogin.in b/bin/flogin.in
index 0419bb6..a43ddda 100755
--- a/bin/flogin.in
+++ b/bin/flogin.in
@@ -242,7 +242,10 @@ proc source_password_file { } {
send_user "Error: $password_file must not be world readable/writable\n"
exit 1
}
- source $password_file
+ if [ catch {source $password_file} reason ] {
+ send_user "Error: $reason\n"
+ exit 1
+ }
}
# Log into the router.