tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sftp access method fails on Emacs master


From: Stephen Berman
Subject: Re: sftp access method fails on Emacs master
Date: Sat, 06 Apr 2019 13:41:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Sat, 06 Apr 2019 01:00:54 +0200 Michael Albinus <address@hidden> wrote:

> Stephen Berman <address@hidden> writes:
>
> Hi Steve,
>
>> For some time I have been unable to access a remote directory via sftp
>> using Tramp 2.4.2-pre from the Emacs master branch, while with emacs-26
>> (Tramp 2.3.5.26.2) it works fine.  I think this started in February, and
>> suspect these changes:
>>
>> commit 0a6c4479cff17b487580abe3a7ee202e71be25d2
>> Author: Michael Albinus <address@hidden>
>> Date:   Tue Feb 19 14:00:17 2019 +0100
>>
>>     Implement access-file in Tramp
>>
>> I've attached two traces with tramp-verbose set to 6, one from emacs-26
>> showing a successful connection (starting at line 476) and one from
>> master failing with "File is missing: Reading directory: No such file or
>> directory" (line 475).  If that's not enough to find the problem, I'll
>> be happy to provide more information.
>
> It's late in the night, so just a first check only. Does the following
> patch helps?
>
> *** /tmp/ediff4cnHKH  2019-04-06 00:55:40.023631484 +0200
> --- /home/albinus/src/tramp/lisp/tramp-gvfs.el        2019-04-06 
> 00:54:57.459337741 +0200
> ***************
> *** 1079,1085 ****
>       (setq res-filemodes
>             (let ((n (cdr (assoc "unix::mode" attributes))))
>               (if n
> !                 (tramp-file-mode-from-int (string-to-number n))
>                 (format
>                  "%s%s%s%s------"
>                  (if dirp "d" (if res-symlink-target "l" "-"))
> --- 1079,1086 ----
>       (setq res-filemodes
>             (let ((n (cdr (assoc "unix::mode" attributes))))
>               (if n
> !                 (tramp-file-mode-from-int
> !                  (logand (string-to-number n) #o7777)))))
>                 (format
>                  "%s%s%s%s------"
>                  (if dirp "d" (if res-symlink-target "l" "-"))

Building with this patch raises the error 'Invalid read syntax: ")"'.
I assume you meant to add only two instead of five parens after #07777
(it was after all late at night ;-).  With that change the build
succeeds but sftp access fails the same as before.

> If not, pls send traces with verbosity 10.

Attached.

Steve Berman

Attachment: emacs-26-10
Description: Binary data

Attachment: emacs-master-10
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]