aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2007-10-21 10:48:28 +0000
committerMichael Albinus2007-10-21 10:48:28 +0000
commit5b2e628f4cfc0a86a8a315e679a9b5c124ed6069 (patch)
tree6206d86463426b2de55ecd711e6f92ca00067721
parent74e248f328044b4f2c4b7db92dadd5392979570f (diff)
downloademacs-5b2e628f4cfc0a86a8a315e679a9b5c124ed6069.tar.gz
emacs-5b2e628f4cfc0a86a8a315e679a9b5c124ed6069.zip
* files.el (backup-buffer-copy): Call `copy-file' with non-nil
preserve-uid-gid. * net/ange-ftp.el (ange-ftp-copy-file): Add PRESERVE-UID-GID for compatibility. It is not used, though.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/files.el4
-rw-r--r--lisp/net/ange-ftp.el2
3 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4573cb38499..9aa1b8070c9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12007-10-21 Michael Albinus <michael.albinus@gmx.de>
2
3 * files.el (backup-buffer-copy): Call `copy-file' with non-nil
4 preserve-uid-gid.
5
6 * net/ange-ftp.el (ange-ftp-copy-file): Add PRESERVE-UID-GID for
7 compatibility. It is not used, though.
8
12007-10-21 Dan Nicolaescu <dann@ics.uci.edu> 92007-10-21 Dan Nicolaescu <dann@ics.uci.edu>
2 10
3 * progmodes/gud.el (gud-target-name): Move definition before use. 11 * progmodes/gud.el (gud-target-name): Move definition before use.
diff --git a/lisp/files.el b/lisp/files.el
index 6d03ad24dbe..b2af5c20414 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3204,13 +3204,13 @@ BACKUPNAME is the backup file name, which is the old file renamed."
3204 (set-default-file-modes ?\700) 3204 (set-default-file-modes ?\700)
3205 (when (condition-case nil 3205 (when (condition-case nil
3206 ;; Try to overwrite old backup first. 3206 ;; Try to overwrite old backup first.
3207 (copy-file from-name to-name t t) 3207 (copy-file from-name to-name t t t)
3208 (error t)) 3208 (error t))
3209 (while (condition-case nil 3209 (while (condition-case nil
3210 (progn 3210 (progn
3211 (when (file-exists-p to-name) 3211 (when (file-exists-p to-name)
3212 (delete-file to-name)) 3212 (delete-file to-name))
3213 (copy-file from-name to-name nil t) 3213 (copy-file from-name to-name nil t t)
3214 nil) 3214 nil)
3215 (file-already-exists t)) 3215 (file-already-exists t))
3216 ;; The file was somehow created by someone else between 3216 ;; The file was somehow created by someone else between
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 9962fd14613..432effe5547 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -3813,7 +3813,7 @@ Value is (0 0) if the modification time cannot be determined."
3813 (ange-ftp-call-cont cont result line))) 3813 (ange-ftp-call-cont cont result line)))
3814 3814
3815(defun ange-ftp-copy-file (filename newname &optional ok-if-already-exists 3815(defun ange-ftp-copy-file (filename newname &optional ok-if-already-exists
3816 keep-date) 3816 keep-date preserve-uid-gid)
3817 (interactive "fCopy file: \nFCopy %s to file: \np") 3817 (interactive "fCopy file: \nFCopy %s to file: \np")
3818 (ange-ftp-copy-file-internal filename 3818 (ange-ftp-copy-file-internal filename
3819 newname 3819 newname