Subject: Re: bug#9879: 23.3; making script executable with tramp

From: Michael Albinus <[email-masked]>
Date: Sun, 13 Nov 2011 11:42:33 +0100

Glenn Morris <[email-masked]> writes:

> Hi Michael,

Hi,

> Might this be an issue with Tramp's file-modes handler?

Tramp's file name handler is very short:

(defun tramp-handle-file-modes (filename)
  "Like `file-modes' for Tramp files."
  (let ((truename (or (file-truename filename) filename)))
    (when (file-exists-p truename)
      (tramp-mode-string-to-int (nth 8 (file-attributes truename))))))

Maybe there are unexpected results for `file-truename', who knows.

Dan, could you, please, set tramp-verbose to 9 and rerun the test? There
will be a debug buffer, which you could show us for analysis.

Best regards, Michael.