mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Fix the macro for condition
This commit is contained in:
parent
1db8951d3a
commit
1aa2555044
1 changed files with 1 additions and 1 deletions
2
file.c
2
file.c
|
@ -5967,7 +5967,7 @@ rb_stat_W(VALUE obj)
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_stat_ww(VALUE obj)
|
rb_stat_ww(VALUE obj)
|
||||||
{
|
{
|
||||||
#ifdef S_IROTH
|
#ifdef S_IWOTH
|
||||||
struct stat *st = get_stat(obj);
|
struct stat *st = get_stat(obj);
|
||||||
if ((st->st_mode & (S_IWOTH)) == S_IWOTH) {
|
if ((st->st_mode & (S_IWOTH)) == S_IWOTH) {
|
||||||
return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO));
|
return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue