summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index c86eb53f0c..0ce6e3a19b 100644
--- a/file.c
+++ b/file.c
@@ -4107,7 +4107,7 @@ rb_f_test(int argc, VALUE *argv)
return rb_file_writable_p(0, argv[1]);
case 'W':
- return rb_file_world_writable_p(0, argv[1]);
+ return rb_file_writable_real_p(0, argv[1]);
case 'x':
return rb_file_executable_p(0, argv[1]);