Mercurial > emacs
changeset 51022:66b3b1b70da3
(Fdelete_file): Handle symlinks pointing to directories.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 16 May 2003 18:50:15 +0000 |
parents | 59fa0bb3f282 |
children | 684391d76c30 |
files | src/fileio.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.c Fri May 16 13:34:07 2003 +0000 +++ b/src/fileio.c Fri May 16 18:50:15 2003 +0000 @@ -2623,7 +2623,8 @@ struct gcpro gcpro1; GCPRO1 (filename); - if (!NILP (Ffile_directory_p (filename))) + if (!NILP (Ffile_directory_p (filename)) + && NILP (Ffile_symlink_p (filename))) Fsignal (Qfile_error, Fcons (build_string ("Removing old name: is a directory"), Fcons (filename, Qnil)));