From 974647ac913e1280e7142321a19e3b7eaabefc25 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 30 Jun 2009 15:23:50 +0000 Subject: [PATCH] * net/tramp.el (tramp-default-file-modes) Remove execute permissions. --- lisp/ChangeLog | 1 + lisp/net/tramp.el | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 17a21d0b4fa..bd1e3beef14 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 9da9e314cd2..84776f7f256 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -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." -- 2.39.2