Ken Takata wrote:

> 2016/1/17 Sun 23:57:02 UTC+9 Bram Moolenaar:
> > Patch 7.4.1114 (after 7.4.1107)
> > Problem:    delete() does not work well with symbolic links.
> > Solution:   Recognize symbolik links.
> > Files:      src/eval.c, src/fileio.c, src/os_unix.c, src/proto/os_unix.pro,
> >             src/testdir/test_delete.vim, runtime/doc/eval.txt
> 
> This patch still has some problems on Windows.
> 
> * Doesn't handle junctions properly. They should be handled as same as 
> symlinks.
> * A symlink or junction to a directory should removed by RemoveDirectory()
>   not DeleteFile().
> 
> Attached patch fixes them.
> I also think os_win32.c should have mch_isrealdir().

Thanks!


-- 
For society, it's probably a good thing that engineers value function over
appearance.  For example, you wouldn't want engineers to build nuclear power
plants that only _look_ like they would keep all the radiation inside.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui