On Tuesday, January 04, 2011 00:47:16 Timo Sirainen wrote: > On 3.1.2011, at 19.15, Michal Hlavinka wrote: > > Shouldn't mkdir and chown make together a transaction? When it fails just > > for first time, it confuses some admins (this is the reason why I'm > > getting complains (bug reports) just because missing/wrong > > configuration). I think it a) should work even for first connection > > (ignore chown failure) or b)it should not work for following connection, > > so the behavior should be more consistent. > > Sounds reasonable, yes. (Not such which one, a or b.) I should probably do > something about it, but it's still about how to handle an error condition, > so not a hugely important thing.
I think a) is better for lazy admins, but b) is more correct, because other way it's (a little bit) harder to find out this error - having wrong permissions in situations when group is really required.