public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Documentation on fstab out of date
@ 2015-04-18 14:47 David Macek
  2015-04-18 17:21 ` Steven Penny
  2015-04-20  9:22 ` Corinna Vinschen
  0 siblings, 2 replies; 4+ messages in thread
From: David Macek @ 2015-04-18 14:47 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

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


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4234 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-20  9:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-18 14:47 Documentation on fstab out of date David Macek
2015-04-18 17:21 ` Steven Penny
2015-04-18 18:55   ` David Macek
2015-04-20  9:22 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).