1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

2479 Commits

Author SHA1 Message Date
Stefan Metzmacher
1be714b287 r18685: we don't need this here
metze
(This used to be commit cc729e646c5e3cb7919d033f90bda1dce545ff6b)
2007-10-10 14:19:02 -05:00
Stefan Metzmacher
0780eb7f82 r18675: merge from samba3:
we need to define the macros the indicate we have bool
even if we have not defining bool ourself

metze
(This used to be commit 0c18e5d9383883f696113837a9e2d1bc078f18b1)
2007-10-10 14:19:01 -05:00
Stefan Metzmacher
550495b6f9 r18674: merge from samba3,
PRINTF_ATTRIBUTE seems to not work with gcc 3.0

metze
(This used to be commit dfb9bfba943bb4954101e7e02fa5a68046817162)
2007-10-10 14:19:01 -05:00
Volker Lendecke
4209af5a84 r18661: C++ warnings
(This used to be commit 771d30ca0c9d108b800bcfe33069f38dc4382662)
2007-10-10 14:19:00 -05:00
Rafal Szczesniak
d630105b56 r18614: a bit of work done while on the plane.
a new function converting NTTIME to struct timeval

rafal
(This used to be commit e9ebbb8661ac6efc5bf07798a64cdb9f7c7eea50)
2007-10-10 14:18:56 -05:00
Andrew Tridgell
69eed6a4ba r18604: fixed shell syntax
(This used to be commit 61104953c82442b9ef0817c077f4b91741fa3aa8)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
1188fa1a18 r18602: updated web page for new ldb build method
(This used to be commit 36c35262f23fec20feff99a87b185b74c1f176c2)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
f96b8c5391 r18601: updated web page for new talloc build method
(This used to be commit fbd8028080108cd920ee0a65bdb10de2eb419cde)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
e84ee4a6fd r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
(This used to be commit 13878b7e7ec65b21df954f83afc0e9ceb73e44a0)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
ee528dc0f2 r18596: removed superfluous semicolon
(This used to be commit 4f3628dea69efce430bf96a42435025806853d90)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
550834c9df r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
(This used to be commit 9f45f970f71ee5585bf3c924b9c77188405fa246)
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
4a854fe809 r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.

metze
(This used to be commit 26228e4b2e8debd84caebe84bb34bfbbf2ad405c)
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
5d6a38004a r18592: we don't need this twice
metze
(This used to be commit e9fe725cf4021943e939f493b967e0ef5a438622)
2007-10-10 14:18:53 -05:00
Simo Sorce
9dd6cac44a r18591: Better defaults for share creation
Fix logic error in paged_results
(This used to be commit 34ce1f8e1bab2debb508aa8bf478231389a77d42)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
3c76ac114d r18589: make inclusion of net/if.h conditional. It breaks HPUX with gcc.
(This used to be commit ac71f40f8ff13c422e528dd5013842aa5a5004e7)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
3d6cdc9e97 r18586: fixed a potential fd and memory leak in the socket_wrapper code
(This used to be commit 6d53f2f5bc3a008f957be9e32df6830e1e29e8ed)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
655b710204 r18584: found one of the fd leaks. The registry backend was using a
talloc(NULL, xxx) to allocate the registry context. That had two
consequences

1) it was a massive memory leak, as all winreg operations leaked their
   entire context (including an open ldb database) every time

2) event_context_find() never found the exsting event context, so we
   used a new event context each time, which called epoll_create()
   each time, which caused a fd to be allocated
(This used to be commit 1c0a3de39828b43149d8981fc7f10e7c8b59a392)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
6e3b94d3bc r18563: - move more of the header checks into lib/replace/
- change the test for net/if.h to do a full compile, not just an
  existance test. net/if.h is completely broken on hpux, and can never
  compile (it uses stuff before it defines it), so by using a
  AC_TRY_COMPILE() test we avoid using net/if.h on hpux, which should
  fix the build
(This used to be commit bde18f3d5ce837f600bae8d63f31d92a579fe1f2)
2007-10-10 14:18:46 -05:00
Gerald Carter
dce0c9e4fd r18561: Fix [out] pointers in winreg IDL
(This used to be commit 694677dafefdd94fa0a9bed93efab70c528dcb26)
2007-10-10 14:18:46 -05:00
Stefan Metzmacher
45e566b7cc r18553: - confdefs.h is always included in configure checks no need to include them explicit
- undefine _XOPEN_SOURCE_EXTENDED for the AIX interface detection test
  #define _XOPEN_SOURCE_EXTENDED 1 brings in sa_len to sockaddr on Tru64
  which means the AIX code compiles...

metze
(This used to be commit 04a0a5144a249e12a9dcb327c5b6055e6a6135db)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
a8fd66f91f r18549: move gcc version check to libreplace and reorder the tests a bit
for nicer output

metze
(This used to be commit 888a769af557d050d99df703ce5f651688c837c5)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
f8079a6386 r18548: don't use #elif as we don't notice when 2 HAVE_IFACE_ versions are defined
try to find the problem on Tru64...where configure says the AIX method finds 1 interface
but later can't compile netif.c. (revision 18486 was the last that detects ifconf with 2 interfaces)

metze
(This used to be commit 8fa9852160680054ddb5316c4ee03a03f8553a37)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
040b5b812e r18544: - use AC_LIBREPLACE_LOCATION_CHECKS in samba4
- to get the ordering right we need to specify AC_CANONICAL_BUILD explicit
- add AC_CANONICAL_TARGET

metze
(This used to be commit 1ea52d75849f004752cdbe11a3dddd10b4afe47d)
2007-10-10 14:18:44 -05:00
Andrew Tridgell
182ab7107c r18539: 'make distclean' should delete config.cache
(This used to be commit 5a8becb1be1b41b4fecf9f9f47a60eed5f77c264)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
1d7a878c8b r18538: we need a pipe here, not a logical OR
also fix cn name for this record, and ensure tests/tmp is created
(This used to be commit 588c91f06b90467279600fe6a1222273b5d53915)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
2a3ebd9a7e r18537: after testing for poptGetContext, if the test fails, don't try to use
the external popt (this affects hpisgr8)
(This used to be commit 9afbd60f91bca84dd645372ed7139e42f712384d)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
0e9147029f r18536: fixed the loading of external binary files from ldif into ldb
(This used to be commit fbe13ed83e2f3508db6d77f4bd65a913ef12ff02)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
fafa8c3e47 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
(This used to be commit 823cd3ab35456769dcefee17bdaca21f01ba0f63)
2007-10-10 14:18:42 -05:00
Andrew Tridgell
c902a8927c r18521: implement volkers suggestion for avoiding the type punning warnings
(This used to be commit 9b9f058edb033c999c4430add4f05459ac43c9e2)
2007-10-10 14:18:41 -05:00
Andrew Tridgell
eef5a6f538 r18518: we replace snprintf() if its not C99, so we should also add the rep_
prototype in that case
(This used to be commit 64b5ff171d04bd93bd41309edfbe532c01a46e4f)
2007-10-10 14:18:41 -05:00
Jelmer Vernooij
e9c465621e r18515: Remove calls to "time" for now as some sh implementations don't have it,
causing this test to fail.
(This used to be commit fc3f41a4ab38fd32386c5bdb1979cc26892afcf8)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
cbb1975c8c r18514: fix configure caching of AC_VERIFY_C_PROTOTYPE() macro
metze
(This used to be commit 8e49dc69e7d588c85c9e9e7b24b595c61c1da95a)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
a0e87e5dc7 r18505: add configure checks for telldir() and seekdir()
telldir() is different on older OpenBSD versions
seekdir() is different Tru64

tridge: OpenBSD seems to like this replacement:-)
        while MAC OS 10 gets 134 runtime error:-(
	lets wait what Tru64 will give

metze
(This used to be commit 1f4e602ff239b7feabb2dd1d6938dedf91bde5cd)
2007-10-10 14:18:40 -05:00
Andrew Bartlett
595c141a69 r18504: Handle mappings for RENAME and KEEP attributes better. We don't need
to mess with the values in these cases.

Where we do convert the values, try and convert substrings.  This
isn't going to be perfect, but we should try rather than segfault.

This also avoids using the wrong arm of the union for the attribute
name

The change in the entryUUID module is to correct the case of
sAMAccountName, due to the case sensitive ldap.js test.

Andrew Bartlett
(This used to be commit 81d9a692c1e74ec9078bf718003eafdba85b4324)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
a9aa6d0c67 r18503: - _GNU_SOURCE is defined by libreplace
- move AS_HELP_STRING replacement to libreplace

metze
(This used to be commit ace406a36ebbed230bf6c844e4639bac5e6c9882)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
d184a9cc32 r18502: remove unused lines
metze
(This used to be commit 37f55c08c304feddf2ca5d0d20deeb9a6317e2c3)
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
8ed1176a8d r18501: libreplace needs 'long long', bailout if not present
or the size is not 8 bytes or more.

samba4 doesn't need type checks anymore

metze
(This used to be commit d8fdd05482fc6b9bfb48d72db6b467e3e5c05e4d)
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
ac24d381a5 r18499: this hopefully lets the code compile on OpenBSD
the prototype was fixed in this revision
http://www.openbsd.org/cgi-bin/cvsweb/src/include/dirent.h.diff?r1=1.15&r2=1.16

so we'll need a configure test to find the prototype of
telldir later

metze
(This used to be commit c4da3b43640368aff98e501b6ca7801821fd2fbd)
2007-10-10 14:18:39 -05:00
Andrew Bartlett
1e4f5a096c r18495: More work on the LDAP backend (which now passes a lot of our tests!)
This adds a list of attributes that are in our wildcard seaches, but
the remote server requires to be explicitly listed.  This also cleans
up the handling of wildcards in ldb_map to be more consistant.

Also fix the partitions module to rebase the search, if on the GC
port, we do a subtree search.  (Otherwise backends can rightly
complain that the search is not in their scope).

Andrew Bartlett
(This used to be commit bc58792b7102f086b19353635d5d5ef9d40a0aae)
2007-10-10 14:18:38 -05:00
Andrew Tridgell
bdfecf3c97 r18493: another "blind coding" attempt at a getdirentries() based readdir()
replacement
(This used to be commit 94b73d692bf85604c7be811bad0b8c6a08b18103)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
ae98478385 r18492: an attempt at replacing readdir() with something based on
getdirentries()

This is untested on any of the platforms that matter, so we'll just
have to see if the build farm machines like it
(This used to be commit 343b0871b16c86b68badd4581420f475f94e79c9)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
90c3e8b906 r18491: fixed a warning
(This used to be commit 1b17f0f08f85238717e88966cba311ff4b933a9a)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
fd6030eac7 r18490: on irix _XOPEN_SOURCE_EXTENDED needs to be defined to 1, not just
defined
(This used to be commit 39d984738b1931e16cb0e6abfdb58108fc97da90)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
6fa6c74d59 r18488: we have to make sure any extensions flags also make it into
confdefs.h, otherwise the real build and the configure tests will not
be significant

this change fixes the build of libreplace on hpux with gcc
(This used to be commit d37fc315325c93414ce0942d28f0f47b42873b95)
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
f80d6bc100 r18486: hopefully this fixes the panics on solaris
metze
(This used to be commit 22cfc3404ccb621dad194fe04c5f2885fb16f79c)
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
d08fb7b1cc r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
(This used to be commit 95d33e4d71b4c97af8413bcd136f393aa3e380dd)
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
3de6b469cc r18479: start hiding libreplace configure tests behind macros
AC_LIBREPLACE_CC_CHECKS
AC_LIBREPLACE_BROKEN_CHECKS
and
AC_LIBREPLACE_ALL_CHECKS
which calls the 2 others

I'll add some more, so that samba3/samba4 can later call
them in the wanted order and all standalone builds
use AC_LIBREPLACE_ALL_CHECKS.

metze
(This used to be commit e7a30456c76f4bf9a79cdcff6b15c894bc20c954)
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
8e65d33d7d r18474: - we don't need to explicit check stdint.h and inttypes.h
alsready done by autoconf magic
- display the sizes of all standard C types
- check for int64_t and uint64_t

metze
(This used to be commit 371a33a871b67f12af177696bae6aa87d2c1d9f9)
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
4e355095d1 r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
- AC_HEADERS_STDC is not explicit needed

metze
(This used to be commit 8f20d2cfe564164ea049dbb9f52d885e11098c2a)
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
84a56aca15 r18465: much better fix for a roken specifiv problem
metze
(This used to be commit 1ae1e68fe9e1004f1a11847714b2e71715a1ce03)
2007-10-10 14:18:34 -05:00