On Mon 12 Jan 2004 at 10:31:52 +0900, Yukihiro Matsumoto wrote:

> In message "Re: [PATCH] File.readable_world? and File.writable_world?"
>     on 04/01/12, Ian Macdonald <ian / caliban.org> writes:
> 
> |> I think it would be source of confusion.  They are too similar.  How
> |> about writable_world? returns its permission bits if the file is
> |> writable from others, otherwise nil?
> 
> |That's an interesting idea. The only problem is that world_writable?
> |would return nil when checking a file that has accidentally acquired,
> |for example, mode 446, which is very insecure. Returning nil in such a
> |case from a method with a name like world_writable? might also be
> |confusing.
> 
> The mode 446 is -r--r--rw-, which is writable from others, so that
> world_writable? should not return nil, right?

I'm sorry. I misread what you had written. I thought you wanted the mode
returned when the file was world-writable, not just when writable by
others.
 
> |What about Nobu's suggestion to have the methods in File::Stat, too? Do
> |you want me to add them there, also?
> 
> Sounds nice.

I'll produce a new patch that includes this.

Ian
-- 
Ian Macdonald               | "A woman is like a dresser ... some man
System Administrator        | always goin' through her drawers."   --
ian / caliban.org             | Blind Lemon Pledge 
http://www.caliban.org      | 
                            |