[Bug 8001] Is MAXPATHLEN set properly on FreeBSD?

Shinichi Maruyama marya at st.jip.co.jp
Thu Mar 10 16:50:15 MST 2011


I use FreeBSD on some machines.

> MAXPATHLEN is a system-defined value of the longest path a function such as
> open() can handle, so you can't just arbitrarily increase it.  If your OS
> provides a MAXPATHLEN value that is smaller than what open() can handle, file a
> bug with the FreeBSD folks.  If it doesn't provide any such define, rsync.h
> will set it to be a conservative 1024 bytes.  If you find that FreeBSD has some
> other define for this maximal value I can either get rsync.h to make use of it,
> or you can get the FreeBSD folks to define MAXPATHLEN.

	On FreeBSD 8.0 (a little old), MAXPATHLEN is defined in
<sys/param.h>.

	/usr/include/sys/param.h:
	#define        MAXPATHLEN      PATH_MAX

	And PATH_MAX is defined in <sys/syslimits.h> which is included
from <sys/param.h>.

	/usr/include/sys/syslimits.h:
	#define    PATH_MAX                 1024   /* max bytes in pathname */

-- 
marya at st.jip.co.jp



More information about the rsync mailing list