On 25-Oct-2005 Ed Tomlinson wrote: > On Tuesday 25 October 2005 05:57, Matthew Toseland wrote: >> Okay, so what is a reasonable limit? 4096 bytes? We have to have >> some >> limit to avoid memory DoS, as these will be kept in RAM for a >> while... > > Matthew, > > I my case 512 would have worked fine.
Well, on my FreeBSD box, I have the following defines under /usr/include: limits.h:#define _POSIX_PATH_MAX 256 limits.h:#define _XOPEN_PATH_MAX 1024 stdio.h:#define FILENAME_MAX 1024 /* must be <= PATH_MAX <sys/syslimits.h> */ So, I would say 1024 looks reasonable. -- Conrad J. Sabatier <conrads at cox.net> -- "In Unix veritas"
