Ticket #14777 (closed defect: fixed)
In wxFileName::Exists, make wxFILE_EXISTS_SYMLINK imply wxFILE_EXISTS_NO_FOLLOW
| Reported by: | dghart | Owned by: | vadz |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.5 |
| Component: | base | Version: | 2.9-svn |
| Keywords: | wxFileName wxFILE_EXISTS_SYMLINK wxFILE_EXISTS_NO_FOLLOW | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
As mentioned in #14542, it makes no sense to call wxFileName::Exists(wxFILE_EXISTS_SYMLINK) without preventing symlink dereferencing; otherwise it would always return false. The attached patch implements this.
The default flag wxFILE_EXISTS_ANY contains wxFILE_EXISTS_SYMLINK, so wxFILE_EXISTS_NO_FOLLOW will be auto-added for this too. I suppose it would therefore be sensible to add it explicitly, though I've not done so here.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

