forked from osmocom/wireshark
Note that not all UN*X file systems are case-sensitive.
Expand a comment to suggest what we should probably do on macOS. Change-Id: Ic18afe5d1b165dbb27b5f0f5ff3ff9a33835a0f4 Reviewed-on: https://code.wireshark.org/review/17470 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
770aaf1dde
commit
df3bf9ca79
|
@ -157,7 +157,14 @@ add_menu_recent_capture_file(const gchar *cf_name) {
|
|||
/* do a case insensitive compare on win32 */
|
||||
ri->filename.compare(normalized_cf_name, Qt::CaseInsensitive) == 0 ||
|
||||
#else /* _WIN32 */
|
||||
/* do a case sensitive compare on unix */
|
||||
/*
|
||||
* Do a case sensitive compare on UN*Xes.
|
||||
*
|
||||
* XXX - on UN*Xes such as macOS, where you can use pathconf()
|
||||
* to check whether a given file system is case-sensitive or
|
||||
* not, we should check whether this particular file system
|
||||
* is case-sensitive and do the appropriate comparison.
|
||||
*/
|
||||
ri->filename.compare(normalized_cf_name) == 0 ||
|
||||
#endif
|
||||
cnt >= prefs.gui_recent_files_count_max) {
|
||||
|
|
Loading…
Reference in New Issue