ports/net/samba3/files/patch-lib__replace__repdir_getdirentries.c
Timur I. Bakeyev 2a1c6bc502 This is a cummulative update of net/samba3 from version 3.0.25a to
3.0.26a. Detailed list of all the changes can be found:

  http://www.samba.org/samba/history/samba-3.0.26a.html

Changes are:
o Memory leaks in Winbind's IDMap manager.
o CVE-2007-4138 - Incorrect primary group assignment for domain
  users using the rfc2307 or sfu winbind nss info plugin.
o File sharing with Widows 9x clients.
o Winbind running out of file descriptors due to stalled child
  processes.
o MS-DFS inter-operability issues.
o Offline caching of files with Windows XP/Vista clients.
o Improper cleanup of expired or invalid byte range locks on files.
o Crashes is idmap_ldap and idmap_rid.

Approved by:	shaun (mentor)
2007-09-18 22:27:58 +00:00

15 lines
410 B
C

--- lib/replace/repdir_getdirentries.c.orig Fri Sep 14 05:21:51 2007
+++ lib/replace/repdir_getdirentries.c Fri Sep 14 05:22:13 2007
@@ -129,11 +129,7 @@
d->ofs = 0;
d->nbytes = 0;
}
- /* this relies on seekpos always being a multiple of
- DIR_BUF_SIZE. Is that always true on BSD systems? */
- if (d->seekpos & (DIR_BUF_SIZE-1)) {
- abort();
- }
+ /* abort() */
return d->seekpos + d->ofs;
}