diff options
| author | Eli Zaretskii | 2004-02-02 20:52:20 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-02-02 20:52:20 +0000 |
| commit | dcdbbb5dc5d52c2fa7387b347e4e4739c199a4f9 (patch) | |
| tree | 33d9f7a8169b357c6dd4feaade7cd7d27aa23443 /src/fileio.c | |
| parent | 82eb0daee6b1b56bd1e415550cf6f9d06698e058 (diff) | |
| download | emacs-dcdbbb5dc5d52c2fa7387b347e4e4739c199a4f9.tar.gz emacs-dcdbbb5dc5d52c2fa7387b347e4e4739c199a4f9.zip | |
(Fcopy_file): If NEWNAME is a directory, expand the
basename of FILE relative to it, not FILE itself.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index c7959b3672d..73771591994 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2407,7 +2407,7 @@ Also set the file modes of the target file to match the source file. */) | |||
| 2407 | CHECK_STRING (newname); | 2407 | CHECK_STRING (newname); |
| 2408 | 2408 | ||
| 2409 | if (!NILP (Ffile_directory_p (newname))) | 2409 | if (!NILP (Ffile_directory_p (newname))) |
| 2410 | newname = Fexpand_file_name (file, newname); | 2410 | newname = Fexpand_file_name (Ffile_name_nondirectory (file), newname); |
| 2411 | else | 2411 | else |
| 2412 | newname = Fexpand_file_name (newname, Qnil); | 2412 | newname = Fexpand_file_name (newname, Qnil); |
| 2413 | 2413 | ||