aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-06-11 12:05:04 -0700
committerJeremy Evans <code@jeremyevans.net>2019-06-17 13:57:43 -0700
commitc8edf70cd20b9ff72ebd1e9402a556089f6ff204 (patch)
tree0308125f4846cd399cb4aad2329430720fecfd0b /file.c
parent801d0d9dd72209dab238e3d580ad1ab8116fd8fe (diff)
downloadruby-c8edf70cd20b9ff72ebd1e9402a556089f6ff204.tar.gz
Update documentation for File.executable{,_real}? to mention Windows issues
Fixes [Bug #15664]
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/file.c b/file.c
index 3da358af1f..0dd35161be 100644
--- a/file.c
+++ b/file.c
@@ -1913,6 +1913,10 @@ rb_file_world_writable_p(VALUE obj, VALUE fname)
*
* Returns <code>true</code> if the named file is executable by the effective
* user and group id of this process. See eaccess(3).
+ *
+ * Windows does not support execute permissions separately from read
+ * permissions. On Windows, a file is only considered executable if it ends in
+ * .bat, .cmd, .com, or .exe.
*/
static VALUE
@@ -1928,6 +1932,10 @@ rb_file_executable_p(VALUE obj, VALUE fname)
*
* Returns <code>true</code> if the named file is executable by the real
* user and group id of this process. See access(3).
+ *
+ * Windows does not support execute permissions separately from read
+ * permissions. On Windows, a file is only considered executable if it ends in
+ * .bat, .cmd, .com, or .exe.
*/
static VALUE