After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 511450 - Autorun does not correctly detect unusual casings of autorun.inf or autorun.exe
Autorun does not correctly detect unusual casings of autorun.inf or autorun.exe
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] GIO
2.21.x
Other All
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-23 05:34 UTC by John Millikin
Modified: 2008-01-28 12:51 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Use a case-insensitive search for autorun.inf or autorun.exe (5.50 KB, patch)
2008-01-23 05:35 UTC, John Millikin
none Details | Review

Description John Millikin 2008-01-23 05:34:00 UTC
The autorun code only checks for "autorun.inf", "AUTORUN.INF", "autorun.exe", and "AUTORUN.EXE". However, there are many casings available and used. Some of my discs have "Autorun.inf", "AutoRun.inf", or even odder. The autorun content type detection code should therefore be case-insensitive when checking the existance of these files.
Comment 1 John Millikin 2008-01-23 05:35:11 UTC
Created attachment 103522 [details] [review]
Use a case-insensitive search for autorun.inf or autorun.exe

Defines a utility function nautilus_find_file_insensitive(), and uses it to search for autorun.inf and autorun.exe case-insensitively.
Comment 2 Alexander Larsson 2008-01-28 12:51:03 UTC
Commited with a few changes. Thanks.