* 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
* Re: Documentation on fstab out of date
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
1 sibling, 1 reply; 4+ messages in thread
From: Steven Penny @ 2015-04-18 17:21 UTC (permalink / raw)
To: cygwin
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.
$ touch alpha.sh bravo.sh charlie.bat delta.bat
$ echo '#!/bin/sh' > bravo.sh
$ echo : > delta.bat
$ file *
alpha.sh: empty
bravo.sh: POSIX shell script, ASCII text executable
charlie.bat: empty
delta.bat: ASCII text
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Documentation on fstab out of date
2015-04-18 17:21 ` Steven Penny
@ 2015-04-18 18:55 ` David Macek
0 siblings, 0 replies; 4+ messages in thread
From: David Macek @ 2015-04-18 18:55 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
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 #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4234 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Documentation on fstab out of date
2015-04-18 14:47 Documentation on fstab out of date David Macek
2015-04-18 17:21 ` Steven Penny
@ 2015-04-20 9:22 ` Corinna Vinschen
1 sibling, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2015-04-20 9:22 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 488 bytes --]
On Apr 18 16:47, David Macek wrote:
> 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.
As you did on cygwin-patches :)
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 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).