E17: symlink fixes
authorVincent Torri <vincent.torri@gmail.com>
Sat, 21 Jul 2012 13:48:35 +0000 (13:48 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Sat, 21 Jul 2012 13:48:35 +0000 (13:48 +0000)
commit7e40b5f15a1f8bf9ce35436dbb0dc4191423e6b0
tree8d03145fa64b8a353cf842f17f48befa86f6e751
parent58be84aa8e0a5817e6b259049d4a27e094a7cab4
E17: symlink fixes

when copying symlinks, it creates a symlink to the
destination but with the name of the pointed file/folder.

It causes problems, ex: we can't copy two symlinks
pointing to the same file, because they will have the
same name.

Also when copying, if it's a link, we fill the destination
in the struct task, then, after we check overwrite with
_e_fm_op_handle_overwrite()

Here is a patch which corrects this.

Patch by Maxime Villard (rustyBSD), modified a bit by me (add 2 free() + formatting)

SVN revision: 74264
AUTHORS
src/bin/e_fm_op.c