Fixing PR 7010

svn: r704
This commit is contained in:
Jay McCarthy 2005-08-29 22:14:18 +00:00
parent 3ea5aebdc2
commit 9e305d1960

View File

@ -67,7 +67,8 @@
(define (read-passwords host-info)
(let ([password-path (host-passwords host-info)])
(with-handlers ([void (lambda (exn)
(raise (make-exn:password-file (format "could not load password file ~a" password-path)
(raise (make-exn:password-file (string->immutable-string
(format "could not load password file ~a" password-path))
(current-continuation-marks))))])
(if (and (file-exists? password-path) (memq 'read (file-or-directory-permissions password-path)))
(let ([passwords