tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.2.13.25.2); On Windows 7 the call to chown fails after a lo


From: Michael Albinus
Subject: Re: tramp (2.2.13.25.2); On Windows 7 the call to chown fails after a long time
Date: Wed, 24 May 2017 23:09:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Didier Fort <address@hidden> writes:

> Hi Michael,

Hi Didier,

> I attached the traces (verbose = 10) to the original email as a txt
> file, but here they are again.

Sorry, I have overlooked this in your first message.

> Look for 'chown'.
>
> 16:11:30.351299 tramp-call-process (6) # ‘chown 210247:513 
> c\:/Users/fortdg/AppData/Roaming/.emacs.d/tmp/tramp.253208vJ’ nil nil
> 16:12:16.563911 tramp-call-process (6) # 1
> /usr/bin/chown: cannot access 
> 'c\:/Users/fortdg/AppData/Roaming/.emacs.d/tmp/tramp.253208vJ': No such file 
> or directory

This is strange indeed. Tramp has applied UNIX-style shell quoting to
the file (see c\:/Users...). It shouldn't.

Could you, please, try the following patch:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 22b65a7e16..f536a6ff73 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1550,7 +1550,7 @@ tramp-sh-handle-set-file-times
      (tramp-call-process
       nil "touch" nil nil nil "-t"
       (format-time-string "%Y%m%d%H%M.%S" time)
-      (tramp-shell-quote-argument filename)))))
+      (shell-quote-argument filename)))))
 
 (defun tramp-set-file-uid-gid (filename &optional uid gid)
   "Set the ownership for FILENAME.
--8<---------------cut here---------------end--------------->8---

> Regards,
> Didier

Best regards, Michael.



reply via email to

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