changeset 103639:6be9692e90bf

* net/tramp.el (tramp-default-file-modes) Remove execute permissions.
author Michael Albinus <michael.albinus@gmx.de>
date Tue, 30 Jun 2009 15:23:36 +0000
parents 35dac8ec1522
children fd001b102e15
files lisp/net/tramp.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/tramp.el	Tue Jun 30 14:48:06 2009 +0000
+++ b/lisp/net/tramp.el	Tue Jun 30 15:23:36 2009 +0000
@@ -2789,8 +2789,9 @@
 (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."