[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TRAMP: error in tramp-handle-file-exists-p
From: |
Michael Albinus |
Subject: |
Re: TRAMP: error in tramp-handle-file-exists-p |
Date: |
Mon, 12 Feb 2007 07:25:10 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
Chris Moore <address@hidden> writes:
> tramp-handle-file-exists-p makes this call:
>
> (format
> (tramp-get-file-exists-command multi-method method user host)
> (tramp-shell-quote-argument localname))
>
> It seems that tramp-get-file-exists-command is capable of returning
> nil, which is passed as the first argument to format, which format
> doesn't like. We need to either check the return from
> tramp-get-file-exists-command before passing it to format, or change
> tramp-handle-file-exists-p to stop it returning nil in some cases.
I've added kind of error handling to `tramp-get-file-exists-command',
`tramp-get-ls-command' and `tramp-get-remote-ln'. They should raise an
error now when something went wrong.
Thanks for reporting, and best regards, Michael.