GNU bug report logs - #77402
31.0.50; Tramp: file-writable-p broken

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Mon, 31 Mar 2025 08:22:02 UTC

Severity: normal

Found in version 31.0.50

Fixed in version 30.2

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 77402 <at> debbugs.gnu.org
Subject: bug#77402: 31.0.50; Tramp: file-writable-p broken
Date: Mon, 31 Mar 2025 11:00:21 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
>
> Hi Gerd,
>
>> In current master, Magit over Tramp/ssh stopped working. The first thing
>> I noticed in the log with tramp-verbose == 6 is
>>
>>   08:33:37.401799 tramp-get-remote-tmpdir (1) # File error: Directory /ssh:mini:/tmp not accessible
>>
>> This is caused by file-writable-p returning nil for the remote /tmp dir;
>> /tmp is a symlink to private/tmp on macOS.
>>
>> I could bisect this to
>>
>>   b8104dadbf285d12c356d4cddd28ac3eaf05f263 is the first bad commit
>>   commit b8104dadbf285d12c356d4cddd28ac3eaf05f263 (HEAD)
>>   Author: Michael Albinus <michael.albinus <at> gmx.de>
>>   Date:   Sun Mar 16 14:17:38 2025 +0100
>>       Tramp: Handle symlinks to non-existing targets better
>>
>> Before this change
>>
>>   (tramp-autoload-file-name-handler 'file-writable-p "/ssh:mini:/tmp")
>>   => t
>>
>> After the change, it returns nil.
>
> Could you pls tell, what's the system-type of your local machine, and
> what's the OS of the remote machine?
>
> Thanks, and best regards, Michael.

Soory, forgot to mention. Both are macOS 15.3.2 machines

.../emacs/github/cl-packages % uname -a
Darwin pro2 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64




This bug report was last modified 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.