(Fdelete_file): Handle symlinks pointing to directories.
authorRichard M. Stallman <rms@gnu.org>
Fri, 16 May 2003 18:50:24 +0000 (18:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 16 May 2003 18:50:24 +0000 (18:50 +0000)
src/ChangeLog
src/fileio.c

index 1ff5c7c..5a67533 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-16  Ralph Schleicher  <rs@nunatak.allgaeu.org>  (tiny change)
+
+       * fileio.c (Fdelete_file): Handle symlinks pointing to
+       directories.
+
 2003-05-15  Stefan Monnier  <monnier@cs.yale.edu>
 
        * keyboard.c (apply_modifiers): Don't fill the other cache.
index cfaf573..c84298c 100644 (file)
@@ -2623,7 +2623,8 @@ If file has multiple names, it continues to exist with the other names.  */)
   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)));