diff options
| author | Michael Albinus | 2008-03-30 18:08:20 +0000 |
|---|---|---|
| committer | Michael Albinus | 2008-03-30 18:08:20 +0000 |
| commit | da1975d727df98700b50f9b2d714c6d93d0e117d (patch) | |
| tree | 57afd2bcb1990748a0b2b49b248a16a3e4e196d6 | |
| parent | 0c61d9814ba4ccce428584959e738c22c572fb5a (diff) | |
| download | emacs-da1975d727df98700b50f9b2d714c6d93d0e117d.tar.gz emacs-da1975d727df98700b50f9b2d714c6d93d0e117d.zip | |
* net/tramp.el (tramp-do-copy-or-rename-file): Fix check for
overwriting when NEWNAME is a local file.
| -rw-r--r-- | doc/misc/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 9 |
3 files changed, 13 insertions, 5 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 5ee5d887a4c..5b7883974c4 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | dbus-call-method. | 4 | dbus-call-method. |
| 5 | (Receiving Method Calls): The timeout can be set by the calling client. | 5 | (Receiving Method Calls): The timeout can be set by the calling client. |
| 6 | 6 | ||
| 7 | * trampver.texi: Update release number. | ||
| 8 | |||
| 7 | 2008-03-29 Reiner Steib <Reiner.Steib@gmx.de> | 9 | 2008-03-29 Reiner Steib <Reiner.Steib@gmx.de> |
| 8 | 10 | ||
| 9 | * gnus.texi (Top): Fix version. Add SASL. | 11 | * gnus.texi (Top): Fix version. Add SASL. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fa92b9c04d1..02aa6a91f70 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-03-30 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-do-copy-or-rename-file): Fix check for | ||
| 4 | overwriting when NEWNAME is a local file. | ||
| 5 | |||
| 6 | * net/trampver.el: Update release number. | ||
| 7 | |||
| 1 | 2008-03-30 Alexandre Julliard <julliard@winehq.org> | 8 | 2008-03-30 Alexandre Julliard <julliard@winehq.org> |
| 2 | 9 | ||
| 3 | * vc-git.el: Make vc-status display information about copies, | 10 | * vc-git.el: Make vc-status display information about copies, |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index ac6f64a45da..b30667fa9fb 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -2955,11 +2955,10 @@ and `rename'. FILENAME and NEWNAME must be absolute file names." | |||
| 2955 | (let ((t1 (tramp-tramp-file-p filename)) | 2955 | (let ((t1 (tramp-tramp-file-p filename)) |
| 2956 | (t2 (tramp-tramp-file-p newname))) | 2956 | (t2 (tramp-tramp-file-p newname))) |
| 2957 | 2957 | ||
| 2958 | (unless ok-if-already-exists | 2958 | (when (and (not ok-if-already-exists) (file-exists-p newname)) |
| 2959 | (when (and t2 (file-exists-p newname)) | 2959 | (with-parsed-tramp-file-name (if t1 filename newname) nil |
| 2960 | (with-parsed-tramp-file-name newname nil | 2960 | (tramp-error |
| 2961 | (tramp-error | 2961 | v 'file-already-exists "File %s already exists" newname))) |
| 2962 | v 'file-already-exists "File %s already exists" newname)))) | ||
| 2963 | 2962 | ||
| 2964 | (prog1 | 2963 | (prog1 |
| 2965 | (cond | 2964 | (cond |