aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-20 17:28:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-20 17:28:24 +0900
commit1aa255504414d74977130f9086ee35e149cd22e2 (patch)
tree0cc99ea234be4c666ab8a936930d19c557b14132 /file.c
parent1db8951d3a8be6a756c9d3d3b87231997b301985 (diff)
downloadruby-1aa255504414d74977130f9086ee35e149cd22e2.tar.gz
Fix the macro for condition
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 68122de6ae..acb5d64cbf 100644
--- a/file.c
+++ b/file.c
@@ -5967,7 +5967,7 @@ rb_stat_W(VALUE obj)
static VALUE
rb_stat_ww(VALUE obj)
{
-#ifdef S_IROTH
+#ifdef S_IWOTH
struct stat *st = get_stat(obj);
if ((st->st_mode & (S_IWOTH)) == S_IWOTH) {
return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO));