[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with 'glob' running under FreeBSD 4.3



Hello!

I have found a problem with the use of the function 'glob' in
Heimdal/ftpd
running on a FreeBSD 4.3 system:

The defined name GLOB_LIMIT is an errorcode in the FreeBSD
implementation
of glob (with the value -3) but the Heimdal ftpd uses this name as a
flag
to the glob-function. In the Heimdal roken version of glob this is a
flag
to glob limiting memory usage. The FreeBSD version of glob fails when it
gets the created flags (the ftpd simply crashes with a segmentation
fault).

By simply removing the GLOB_LIMIT from the flags seems to solve the
problem.

/thn

--
---------------------------------------------------------------
Svensk Aktuell Elektronik AB                     Thomas Nyström
Box 10                                    Phone: +46 8 35 92 85
S-191 21  Sollentuna                     Fax: +46 8 59 47 45 36
Sweden                                      Email: thn@saeab.se
---------------------------------------------------------------