mirror of
https://github.com/samba-team/samba.git
synced 2025-06-24 15:17:06 +03:00
are broken (apparently all BSD systems). This breakage leads to unlink on files in an open directory causing a later seekdir to miss files. The bug happens due to a block boundary bug in the BSD libc implementation of these calls. This replacement code also fixes a severe memory usage problem with telldir that can cause closedir() to take an arbitrary amount of time. I have reported the bug in readdir to Greg Lehey (a FreeBSD maintainer) (This used to be commit e1bf7c4279fbc03a52497d24cea375e75059cba1)
20 lines
483 B
Makefile
20 lines
483 B
Makefile
##############################
|
|
# Start SUBSYSTEM REPLACE_READDIR
|
|
[SUBSYSTEM::REPLACE_READDIR]
|
|
ADD_OBJ_FILES = \
|
|
lib/replace/repdir/repdir.o
|
|
NOPROTO = YES
|
|
# End SUBSYSTEM REPLACE_READDIR
|
|
##############################
|
|
|
|
|
|
##############################
|
|
# Start SUBSYSTEM LIBREPLACE
|
|
[SUBSYSTEM::LIBREPLACE]
|
|
INIT_OBJ_FILES = lib/replace/replace.o
|
|
ADD_OBJ_FILES = \
|
|
lib/replace/snprintf.o
|
|
REQUIRED_SUBSYSTEMS = REPLACE_READDIR
|
|
# End SUBSYSTEM LIBREPLACE
|
|
##############################
|