Commit 974647ac authored by Michael Albinus's avatar Michael Albinus
Browse files

* net/tramp.el (tramp-default-file-modes) Remove execute permissions.

parent 7ae3ea65
......@@ -2,6 +2,7 @@
* net/tramp.el (tramp-do-copy-or-rename-file-directly): Handle
also the 'rename case, when setting file modes. (Bug#3712)
(tramp-default-file-modes) Remove execute permissions.
* net/tramp-gvfs.el (tramp-gvfs-methods): Add "synce" method.
(tramp-gvfs-connection-mounted-p): Handle empty user name for
......@@ -2789,8 +2789,9 @@ and gid of the corresponding user is taken. Both parameters must be integers."
(defun tramp-default-file-modes (filename)
"Return file modes of FILENAME as integer.
If the file modes of FILENAME cannot be determined, return the
value of `default-file-modes'."
(or (file-modes filename) (default-file-modes)))
value of `default-file-modes', without execute permissions."
(or (file-modes filename)
(logand (default-file-modes) (tramp-octal-to-decimal "0666"))))
(defun tramp-handle-file-directory-p (filename)
"Like `file-directory-p' for Tramp files."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment