From: Michael Albinus Date: Sun, 5 Apr 2009 18:13:11 +0000 (+0000) Subject: * dired-aux.el (dired-copy-file-recursive): Set mode to "700" if X-Git-Tag: emacs-pretest-23.0.93~224 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=38145b39b915ef131188875bf9f4ce4882a42a9e;p=emacs.git * dired-aux.el (dired-copy-file-recursive): Set mode to "700" if `file-modes' returns nil. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 378108d2b06..615e6365d53 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,21 @@ +2009-04-05 Michael Albinus + + * 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 * frame.el (make-frame): Doc fix. diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 95aaa388310..ffb6f4e9cbf 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -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)