Mail Archives: djgpp-workers/2000/03/10/13:11:13
> In is_exec.c, there is a list of extensions (listed in the code snippet
> below) that automatically designate executable files. This list doesn't
> include .sh, .ksh, .pl, and .sed. Was this done on purpose or should they
> indeed be added to the list?
This list is there to avoid the costly operation of opening the file
and reading its first two bytes; files with other extensions will be
read and their executability determined by the magic signature. So
the list only includes extensions you see most frequently on a typical
DOS/Windows system.
If somebody thinks that a few more extensions should be added, I don't
mind, but please remember the downside: the risk to identify
non-executable files as being executable, just because some Windows
application decided to usurp one of these extensions.
- Raw text -