symlinks and RENAME-FILE and DELETE-DIRECTORY
authorNikodemus Siivola <nikodemus@random-state.net>
Mon, 14 Nov 2011 12:56:00 +0000 (14:56 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Mon, 14 Nov 2011 14:20:02 +0000 (16:20 +0200)
commit79be3b7a53f2082be86f2cfcd9ed725a01d07ecc
tree38432d394669d5db4b67325e37f6ee59b98c6a90
parent18a1f7605aa95cb84282900298c369514e9d49c2
symlinks and RENAME-FILE and DELETE-DIRECTORY

 Both followed symlinks too eagerly.

  * Presumably anyone doing (rename-file "link-to-foo" "bar") wants to rename
    the link and not the file it points to -- which has the unpleasant
    side-effect of breaking the selfsame link.

    Make it so.

 * It is less clear what someone doing (delete-directory "link-to-dir")
   expects to happen -- so take the conservative option and signal an error,
   and document this.
NEWS
src/code/filesys.lisp
tests/filesys.test.sh