summaryrefslogtreecommitdiffstats
path: root/bin/clogin.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/clogin.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/clogin.in')
-rwxr-xr-xbin/clogin.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/clogin.in b/bin/clogin.in
index bfe3ae1..e239d50 100755
--- a/bin/clogin.in
+++ b/bin/clogin.in
@@ -248,7 +248,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.