> > if (perm&0400 == 0) then do a mkdir with 0400, an open, and an fchmod. > > Tomorrow, > > that is. I think the work-around is pretty easy. > > I figure the 0400 might work because mode has to be OREAD at this point > > anyway. > > This is the only way to do it, since as I earlier pointed out, perm is > 0 ... sheesh!
i believe you ment
if((perm&0400) == 0)
- erik
