# HG changeset patch # User Jim Blandy # Date 736482597 0 # Node ID f378d89945e1fb249edf3a0b66f2041afda5dc92 # Parent 3a9fb5d6d2592c9fd56fcb46046cae4f59aabfc6 * fileio.c (Fmake_symbolic_link): If a file already exists under the link's filename, delete the file which the link would replace, not the file the link would point at. diff -r 3a9fb5d6d259 -r f378d89945e1 src/fileio.c --- a/src/fileio.c Tue May 04 02:29:06 1993 +0000 +++ b/src/fileio.c Tue May 04 02:29:57 1993 +0000 @@ -1864,7 +1864,7 @@ /* If we didn't complain already, silently delete existing file. */ if (errno == EEXIST) { - unlink (XSTRING (filename)->data); + unlink (XSTRING (linkname)->data); if (0 <= symlink (XSTRING (filename)->data, XSTRING (linkname)->data)) return Qnil; }