From: Eric Sunshine Date: 2004-01-10T02:10:48+09:00 Subject: Re: [PATCH] File.readable_world? and File.writable_world? On Fri, 9 Jan 2004 18:02:07 +0900, Ian Macdonald wrote: > The attached patch implements the File.readable_world? and > File.writable_world? methods. Please consider its inclusion in Ruby. The > diff is against the latest 1.8.1 snapshot. > + if (st.st_mode & S_IROTH) return Qtrue; > + if (st.st_mode & S_IWOTH) return Qtrue; To avoid complaints from GCC when warnings are enabled, these should be coded as follows: if ((st.st_mode & S_IROTH) != 0) return Qtrue; if ((st.st_mode & S_IWOTH) != 0) return Qtrue; -- ES