In wxFileName::Exists, make wxFILE_EXISTS_SYMLINK imply wxFILE_EXISTS_NO_FOLLOW
|Reported by:||dghart||Owned by:||vadz|
|Keywords:||wxFileName wxFILE_EXISTS_SYMLINK wxFILE_EXISTS_NO_FOLLOW||Cc:|
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.
Change History (5)
Changed 3 years ago by dghart
comment:1 follow-up: ↓ 2 Changed 3 years ago by vadz
- Owner set to vadz
- Status changed from new to accepted