]> git.eshelyaron.com Git - emacs.git/commitdiff
* dired-aux.el (dired-copy-file-recursive): Set mode to "700" if
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Apr 2009 18:13:11 +0000 (18:13 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Apr 2009 18:13:11 +0000 (18:13 +0000)
`file-modes' returns nil.

lisp/ChangeLog
lisp/dired-aux.el

index 378108d2b06dca451c83b8c49e5cbe377c41a58a..615e6365d53e1277099fefd2a51329c9f13f4d53 100644 (file)
@@ -1,3 +1,21 @@
+2009-04-05  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dired-aux.el (dired-copy-file-recursive): Set mode to "700" if
+       `file-modes' returns nil.
+
+       * net/ange-ftp.el (ange-ftp-set-file-modes): New defun.  Change
+       `ange-ftp' property of `set-file-modes' to
+       `ange-ftp-set-file-modes'.
+       (ange-ftp-call-chmod): Add error handling.
+
+       * net/tramp.el (tramp-default-file-modes) New defun.  Replace all
+       calls of `file-modes' by this.
+       (tramp-handle-find-backup-file-name): Use `symbol-value' instead
+       of `boundp'.
+
+       * net/tramp-fish.el (tramp-fish-do-copy-or-rename-file-directly):
+       Use `tramp-default-file-modes'.
+
 2009-04-04  Chong Yidong  <cyd@stupidchicken.com>
 
        * frame.el (make-frame): Doc fix.
index 95aaa388310e15fcfb249238430b9c5cae14ab1c..ffb6f4e9cbf4af3b12512c3ce97de011a2b764eb 100644 (file)
@@ -1210,7 +1210,7 @@ Special value `always' suppresses confirmation."
             (or (eq recursive 'always)
                 (yes-or-no-p (format "Recursive copies of %s? " from))))
        ;; This is a directory.
-       (let ((mode (file-modes from))
+       (let ((mode (or (file-modes from) #o700))
              (files
               (condition-case err
                   (directory-files from nil dired-re-no-dot)