bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)


From: Michael Albinus
Subject: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 16:42:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Bad Blue Bull <ibmbull@yandex.ru> writes:

Hi,

> Dired is pretty same, (I didn't do emacs -Q becauseI have no ido dired
> when start with -Q argument).

Well, your MS Windows server doesn't tell the expected. Tramp tries to
examine, whether it understands the smbclient command "stat":

--8<---------------cut here---------------start------------->8---
16:32:17.351861 tramp-smb-send-command (6) # stat "/"
16:32:17.352040 tramp-smb-wait-for-output (6) #
smb: \>
--8<---------------cut here---------------end--------------->8---

It doesn't show an error message, and so Tramp believes it understands
it. And fails to use it.

With more recent MS Windows or Samba server versions in my lab, we see

--8<---------------cut here---------------start------------->8---
16:25:32.254587 tramp-smb-send-command (6) # stat "/"
16:25:32.256747 tramp-smb-wait-for-output (6) #
Server doesn't support UNIX CIFS calls.
smb: \>
--8<---------------cut here---------------end--------------->8---

This is recognized by Tramp.

Hmm. Maybe you can teach Tramp that your MS Windows machine does not
understand "stat". Add the following to your .emacs:

--8<---------------cut here---------------start------------->8---
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/smb:nicolas@win2k:")
                   "stat-capability" nil))
--8<---------------cut here---------------end--------------->8---

Then restart your Emacs.

Best regards, Michael.





reply via email to

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