Re: [Rails-core] Re: atomic_write's chown breaks multi-user access

2011-11-20 Thread Michael Koziarski
Yep, that sounds like it would work well -- Cheers, Koz On Monday, 21 November 2011 at 10:57 AM, dburry wrote: > On Nov 20, 12:47 pm, Michael Koziarski (http://koziarski.com)> wrote: > > > chown(old_stat.uid, old_stat.gid, file_name) > > > > > > This line was added deliberately. > > I thi

[Rails-core] Re: atomic_write's chown breaks multi-user access

2011-11-20 Thread dburry
On Nov 20, 12:47 pm, Michael Koziarski wrote: > > chown(old_stat.uid, old_stat.gid, file_name) > > This line was added deliberately. I think I now see the flaw in my original logic, thanks. How about this instead: change the line to: chown(nil, old_stat.gid, file_name) The reason being: n