encountering problems with PATH_MAX testing

Timothy R. Chavez tinytim at us.ibm.com
Wed Jun 15 16:05:38 UTC 2005


On Wednesday 15 June 2005 10:44, Loulwa Salem wrote:
> Steve Grubb wrote:
> 
> > On Wednesday 15 June 2005 11:28, Loulwa Salem wrote:
> > 
> >>Anybody can think of a way to go around this and still test the
> >>=PATH_MAX, and =PATH_MAX-1 cases?
> > 
> > 
> > Are you trying to create a dirname that is 4085 bytes long? dirs are limited 
> > to 255 bytes for their name. You will have to create a series of dirs to get 
> > the right length. Is this what you are doing?
> 
> Ah ... I was trying to create one really long directory ...
> I think at some point I thought of doing what you suggested ... but 
> disregarded it because I thought it would be a pain to cascade 
> directories ...

No pain, no gain, Loulwa =)

-tim

> 
> Thanks for the help Steve
> - Loulwa
> 
> 
> --
> Linux-audit mailing list
> Linux-audit at redhat.com
> http://www.redhat.com/mailman/listinfo/linux-audit
> 
> 




More information about the Linux-audit mailing list