Fix the macro for condition
This commit is contained in:
parent
1db8951d3a
commit
1aa2555044
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…
x
Reference in New Issue
Block a user