Documentation on fstab out of date

David Macek david.macek.0@gmail.com
Sat Apr 18 14:47:00 GMT 2015


Hi. It seems to me that <https://cygwin.com/cygwin-ug-net/using.html#mount-table> is out of sync with actual Cygwin behaviour in few aspects. What's the established process on updating these docs? List of issues I found follows.
> Recognized options are binary, text, nouser, user, exec, notexec, cygexec, nosuid, posix=[0|1]. The meaning of the options is as follows.

There are more options, as can be seen below the cited paragraph.
> Files ending in certain extensions (.exe, .com, .bat, .btm, .cmd) are assumed to be executable.

My reading of fhandler_disk_file.cc suggests it's only .exe, .com, and .lnk these days.
Interestingly, nt_path_has_executable_suffix (only used in the rename syscall, AFAICT) looks for a different set of suffixes (.com, .dll, .exe, .scr, .sys).
> Files whose first two characters begin with '#!' are also considered to be executable.

According to has_exec_chars, the sniffing routine also looks for "MZ" (EXE/PE files) and ":\n" (batch files? (can anyone confirm this?)).
-- 
David Macek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4234 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150418/d68b79bf/attachment.p7s>


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /