]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 1ff5c7cedf4033b7e07aabc4d403a9a6d7e300b8..5a67533e82beb2561b9d021a666b2404271e3184 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 cfaf5738a5e58d9f4a3604a4ad94366244e4f5f9..c84298cdaf17738dcf51983111cfd1089981792f 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)));