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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#77402: closed (31.0.50; Tramp: file-writable-p broken)
Date: Tue, 01 Apr 2025 13:58:11 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 01 Apr 2025 15:57:12 +0200
with message-id <877c447znr.fsf <at> gmx.de>
and subject line Re: bug#77402: 31.0.50; Tramp: file-writable-p broken
has caused the debbugs.gnu.org bug report #77402,
regarding 31.0.50; Tramp: file-writable-p broken
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
77402: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77402
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; Tramp: file-writable-p broken
Date: Mon, 31 Mar 2025 10:21:25 +0200
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.




[Message part 3 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Cc: 77402-done <at> debbugs.gnu.org
Subject: Re: bug#77402: 31.0.50; Tramp: file-writable-p broken
Date: Tue, 01 Apr 2025 15:57:12 +0200
Version: 30.2

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

Hi Gerd,

>> Thanks for the feedback. Since it is a very low-level change, I'll run
>> my regression tests first. If everything goes fine, I'll push.
>
> Fine with me, I'm not in a hurry. I'll just wait until the fix appears.

Done. I've extended the patch for the other Tramp backends. Pushed to
the emacs-30 branch, will appear in master after the next sync.

Closing the bug.

Best regards, Michael.


This bug report was last modified 52 days ago.

Previous Next


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