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 */

--
ma...@st.jip.co.jp

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to