This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Documentation on fstab out of date


On 18. 4. 2015 19:21, Steven Penny wrote:
> On Sat, Apr 18, 2015 at 9:47 AM, David Macek wrote:
>> According to has_exec_chars, the sniffing routine also looks for "MZ" (EXE/PE
>> files) and ":\n" (batch files? (can anyone confirm this?)).
> 
> Yeah, I can confirm that it does nothing.

AFAIK `file` doesn't consult this routine in any way. Try this instead:

$ mount "$(cygpath -m "$TMP")" /home -o noacl
$ cd /home
$ touch alpha.sh bravo.sh charlie.bat delta.bat
$ echo '#!/bin/sh' > bravo.sh
$ echo : > delta.bat
$ ls -l
-rw-r--r-- 1 me None        0 Apr 18 20:53 alpha.sh
-rwxr-xr-x 1 me None       10 Apr 18 20:53 bravo.sh
-rw-r--r-- 1 me None        0 Apr 18 20:53 charlie.bat
-rwxr-xr-x 1 me None        2 Apr 18 20:53 delta.bat

-- 
David Macek

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]