Subject: bug#77402: 31.0.50; Tramp: file-writable-p broken

From: Michael Albinus <[email-masked]>
Date: Mon, 31 Mar 2025 11:13:18 +0200

Gerd Möllmann <[email-masked]> writes:

Hi Gerd,

> 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

Hmm, I cannot reproduce the problem. Recipe:

--8<---------------cut here---------------start------------->8---
(make-directory "/ssh:ford:/tmp/yyy")
=> nil

(make-symbolic-link "/tmp/yyy" "/ssh:ford:/tmp/xxx")
=> t

(let ((default-directory "/ssh:ford:/tmp/"))
  (shell-command-to-string "ls -al"))
=> "...
lrwxrwxrwx   1 admin    administrators       8 2025-03-31 11:03 xxx -> /tmp/yyy
drwxr-xr-x   2 admin    administrators      40 2025-03-31 11:02 yyy
"

(file-writable-p "/ssh:ford:/tmp/xxx")
=> t
--8<---------------cut here---------------end--------------->8---

My local and the remote machine are running GNU/Linux.

Could you, pls, send the whole Tramp debug buffer with tramp-verbose 6,
after starting a new Emacs session?

Best regards, Michael.