openbsd-ports/net/samba/patches/patch-lib_replace_repdir_getdirentries_c
mbalmer 891aaf69f6 Update Samba to version 3.0.28 and add two patches from FreeBSD to allow
for non FFS filesystems (e.g. CD-ROMs) to be shared with Samba again.

This fixes CVE-2007-6015 and several other security problems.

ok winiger
2007-12-14 08:53:27 +00:00

16 lines
508 B
Plaintext

$OpenBSD: patch-lib_replace_repdir_getdirentries_c,v 1.1 2007/12/14 08:53:27 mbalmer Exp $
--- lib/replace/repdir_getdirentries.c.orig Thu Mar 1 05:54:23 2007
+++ lib/replace/repdir_getdirentries.c Thu Dec 13 22:17:06 2007
@@ -129,11 +129,6 @@ long telldir(DIR *dir)
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();
- }
return d->seekpos + d->ofs;
}