Don't follow symlinks in wxFileName::Rmdir(wxPATH_RMDIR_RECURSIVE).
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Oct 2012 23:58:17 +0000 (23:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Oct 2012 23:58:17 +0000 (23:58 +0000)
commit25db2c25bc488fcdd10cc5d2fd4938fd78b1cf0e
tree3a06e39451210d64a688430c95701fa472cf6261
parent0f57172b936f38881051c49f1e79a4465b812b03
Don't follow symlinks in wxFileName::Rmdir(wxPATH_RMDIR_RECURSIVE).

Following symlinks, possibly leading outside of the directory being removed,
is at best surprising and at worst dangerous, so don't do it and just mimic
the behaviour of "rm -rf", i.e. remove everything inside this directory,
including the symlinks themselves, but don't follow them.

Closes #14649.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/filename.cpp
tests/filename/filenametest.cpp