* Peter Stuge peter@stuge.se [070712 09:50]:
Have a look.
I haven't gotten lar to build, but the function works in a separate test program.
//Peter
Make mkdirp() abort directory creation and return an error if a directory in dirpath is located outside the specified parent directory. Use the parent "/" to allow new directories anywhere.
Are you trying to avoid an exploit, or what is it needed for?
mkdirp should not be changed to take other parameters than this: http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWaman/hman3gen/mkdirp.3...