Mercurial > emacs
diff src/fileio.c @ 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 | 85431fbc6ac5 |
children | 4830e98be217 |
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)));