1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

3181 Commits

Author SHA1 Message Date
Andrew Bartlett
c30e91863c r23557: Ensure that we don't reorder the objectClass list, if we don't have
any subclasses loaded yet, or none are applicable.

This fixes MMC so that it at least displays the Samba domain as a
domain, but there is still work to be done.

Andrew Bartlett
(This used to be commit b96b7b623dbc55a4bcf1149347823911a17e717f)
2007-10-10 14:53:26 -05:00
Andrew Bartlett
d291b8bf93 r23551: Change data_blob_equal to data_blob_cmp, suitable for sorting with qsort().
Andrew Bartlett
(This used to be commit 96ef5259c63ad6245c94c40d6059d736b1534183)
2007-10-10 14:53:26 -05:00
Jelmer Vernooij
576b1c84fb r23542: Include function documentation in prototype headers.
(This used to be commit 03eef5f337446f04239e0b2f840213f0aa7d6ea1)
2007-10-10 14:53:26 -05:00
Stefan Metzmacher
ac00b6517e r23420: try to make the IBM checker happy
metze
(This used to be commit 96f1a0dfaa18a432fca4b5432d929d8daed0abb1)
2007-10-10 14:53:17 -05:00
Jeremy Allison
d7942bd2c5 r23371: Fix the misleading comment I added - it really *should*
say "locks chain and returned record", not
"and returns record"
Jeremy.
(This used to be commit fa880e6cc16024f14d10cdc8120ce67bfd1d2eb6)
2007-10-10 14:53:13 -05:00
Jeremy Allison
90539985db r23370: Traverse in tdb wasn't consistently using the
travlocks.lock_rw for lock read/write types, it
was sometimes using it (tdb_next_lock) and
sometimes explicitly using F_WRLCK instead.
Change this to consistently use travlocks.lock_rw
only.
I'm pretty sure about this fix (else I woudn't
be checking this in :-) but tridge and Volker
please review.
Jeremy.
(This used to be commit fa548ad75e945ae4d167baffb87140c90cba268c)
2007-10-10 14:53:12 -05:00
Andrew Tridgell
d89e6c774b r23364: add LDB_FLG_NOMMAP flag
(This used to be commit 0c3442c68b01b6804f3fd966fc1fe9097eb863aa)
2007-10-10 14:53:12 -05:00
Michael Adam
14846bf4f6 r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
This fixes the build on a SuSE 6.1. :-)
I guess this had been merely forgotten.

But beware: The implementations of rep_pread and rep_pwrite are
not thread safe.

Michael
(This used to be commit e4955c729fdf0bd299df4dadc4b33e09fe4d336e)
2007-10-10 14:53:12 -05:00
Stefan Metzmacher
57dd8aeee7 r23339: merge from SAMBA_3_0:
fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticed
it via a SIGBUS...

I missed to remove the samba3 specifc code path to tdb_open_ex()
when I synced lib/tdb/ with samba4. The explicit cast in on tdb_open_ex()
dropped the compiler warning :-(

metze
(This used to be commit df6e3bec368d7d99cb1641023f4cbcd94c438e22)
2007-10-10 14:53:11 -05:00
Stefan Metzmacher
e0f3a383b4 r23306: pass down LDFLAGS to the link command in the libreplace standalone build
metze
(This used to be commit 06caaf0d8d86bb05ceaac6624735283b585d995d)
2007-10-10 14:53:10 -05:00
Stefan Metzmacher
d596200dde r23303: so HP-UX 11.11 also likes the 11.00 workarround for broken
pread/pwrite when using large file support.

metze
(This used to be commit d890a2dabf309f15b0b0c87bb3888d0776bd094b)
2007-10-10 14:53:10 -05:00
Andrew Tridgell
67c5b022a4 r23301: merged from ctdb
(This used to be commit 76b981fcefb0dff24ac7d543da70fbb487ed7072)
2007-10-10 14:53:10 -05:00
Stefan Metzmacher
547f27daa2 r23296: HP-UX 11.11 also gets sizeof(uint64_t) == 4
so try the same fix as for 11.00

metze
(This used to be commit d89088128af89122ef7e0be22697db8dda60ef58)
2007-10-10 14:53:09 -05:00
Stefan Metzmacher
71a141ad53 r23294: try to fix the build
metze
(This used to be commit 04f19c054edc96e165efe8146d660cc4bc3f6dde)
2007-10-10 14:53:09 -05:00
Stefan Metzmacher
d3807e3f5c r23293: the fix for HP-UX 11.11 doesn't work on HP-UX 11.00
we end up with sozeof(uint64_t) == 4 :-(

the _APP32_64BIT_OFF_T section in <sys/unistd.h> missed
to redirect pread, pwrite to pread64, pwrite64 in HP-UX 11.00
so try it manually as a workarround

metze
(This used to be commit bb2da636be57e44d80b2bb52b3bba5c145f4bc68)
2007-10-10 14:53:09 -05:00
Jelmer Vernooij
c2781df0d5 r23289: Provide support for GCC attributes _PURE_, _NONNULL_, _DEPRECATED_, _NORETURN_ and _WARN_UNUSED_RESULT_.
(This used to be commit 44248f662f0b609dad6a7b437948f12d661a28f7)
2007-10-10 14:53:08 -05:00
Stefan Metzmacher
f0daf9602d r23266: HP-UX 11.23 doesn't like this, but HP-UX 11.00 and 11.11 need it
metze
(This used to be commit 6dff6c93fc9073f29b0ae50e4b4abd695918a115)
2007-10-10 14:53:08 -05:00
Stefan Metzmacher
1e3a49478e r23265: HP-UX 11.00 also needs this, try to see if 11.23 is also happy
with it...

metze
(This used to be commit 71eac88f7e666e6cd0dfe113d02861cdfecbee9b)
2007-10-10 14:53:07 -05:00
Andrew Tridgell
dd64de3d5b r23238: merged transaction lock changes from ctdb
this ensures that having the global lock also implies the transaction
lock
(This used to be commit 9dbb2633d7781fcc5d15b175ef36bfda5eb199bb)
2007-10-10 14:53:06 -05:00
Andrew Tridgell
9c6c4848c9 r23237: update lib/replace from ctdb
(This used to be commit 361c5995bcf1dafb89f935ac4183dc295e1d524d)
2007-10-10 14:53:05 -05:00
Stefan Metzmacher
867f7f4b74 r23208: on some HP-UX boxes dlfcn.h is available and use unsigned int flags
for dlopen but no library contains the function...

metze
(This used to be commit 0c7e3ed9625d512522a0cc7278e705fbbfc316f4)
2007-10-10 14:53:03 -05:00
Stefan Metzmacher
fbe7d8cbc5 r23188: revert 23123 and 23118.
as a long term solution this was the correct approach,
but it's a bit more complex and we need to provide the
whole socket api and libnsl.so checking in libreplace...

as a short term solution to fix the build on host 'hape'
we'll use the same trick as with inet_aton.c from
heimdal's lib/roken/

metze
(This used to be commit 0e88e2e46199d8ea64dd42c4c8b86d64ce5c2d04)
2007-10-10 14:53:02 -05:00
Andrew Bartlett
5fb459e4fa r23177: Add in a new provision-backend script. This helps set up the OpenLDAP or Fedora DS backend.
This required a new mkdir() call in ejs.

We can now provision just the schema for ad2oLschema to operate on
(with provision_schema(), without performing the whole provision, just
to wipe it again (adjustments to 'make test' to come soon).

Andrew Bartlett
(This used to be commit 01d54d13dc66ef2127ac52c64ede53d0790738ec)
2007-10-10 14:53:00 -05:00
Jelmer Vernooij
dc919c2534 r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl
(This used to be commit 222acbe33b427a6ccae3b9e27b545f22e4564d5c)
2007-10-10 14:52:59 -05:00
Jelmer Vernooij
e3af07d1b1 r23158: Set version to 1.0.1.
(This used to be commit db065db67a5edcefc6dbe2e504a4922b9b9f7f21)
2007-10-10 14:52:58 -05:00
Jelmer Vernooij
f862ee9db1 r23157: Add news file for talloc.
(This used to be commit cb92da26799d27975dd27255007573cef6397d8a)
2007-10-10 14:52:58 -05:00
Andrew Tridgell
de8b793050 r23153: a first cut at a fix for the dgram flood problem that volker
found. Not sure this is the best solution, but it should work.
(This used to be commit 80002cd12a64fa2679e48c58906cb9b26ad17e49)
2007-10-10 14:52:58 -05:00
Michael Adam
4fa973e4a4 r23123: Fix two utterly simply typos that broke the whole build farm...
Michael
(This used to be commit 54193c4638a27983f18478a61beedde889ecc2e2)
2007-10-10 14:52:51 -05:00
Michael Adam
ef5dc55983 r23118: Make inet_pton and inet_ntop available through lib/replace.
The code for inet_pton.c and inet_ntop.c is taken from
the rsync code.

I will put this into 3_0 and 3_0_26 too, but let's sort
the readahead issue in lib/replace of 3_0 first...

Michael
(This used to be commit 9781b13fd3e0c2a0aa66412c571f562c9f17dcbe)
2007-10-10 14:52:51 -05:00
Michael Adam
a32b648ea1 r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.
(This used to be commit 943acd688d5aa0cd4adc6dc0fd7b92f1f294c219)
2007-10-10 14:52:49 -05:00
Andrew Bartlett
615fea1c5c r23064: Clarify comment and indent
(This used to be commit 607e8409f86b28c51a058555021cd45c1cb72a26)
2007-10-10 14:52:46 -05:00
Andrew Tridgell
145a9dd010 r23059: reject_free needs to be initialised
(This used to be commit ffb8b493161f6951dabb94f2e9ee4c2f2c11b4e0)
2007-10-10 14:52:45 -05:00
Andrew Tridgell
36d7186e72 r23021: test some boundary conditions for idtree, after I saw some suspicious
behaviour
(This used to be commit e862cf17b891885f3a733819869a06895c1fb324)
2007-10-10 14:52:40 -05:00
Andrew Tridgell
d2872b42f3 r23013: fixed a bug in the string_replace_w() test that caused OpenBSD to die
(This used to be commit 1fe20a4555aac6f011eca98f138e125de0de4321)
2007-10-10 14:52:39 -05:00
Stefan Metzmacher
fe1d56dd3b r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
in all other places too...

metze
(This used to be commit 4e32aafb9ebdcc70966aaa2e3891ec9a0959535d)
2007-10-10 14:52:36 -05:00
Andrew Tridgell
2ad24b9ba1 r22988: fixed 2 bugs in our unsetenv() replacement code
1) you must not free the memory, as it is possible the memory did not
 come from malloc (try it under valgrind to test)

 2) the old code didn't cope with duplicate environment variables

I hope this will fix some of the build farm errors on irix, and maybe solaris
(This used to be commit ec6900171d066e927f004b621fb39cc7b8dcfd90)
2007-10-10 14:52:36 -05:00
Andrew Tridgell
cd509a6237 r22985: don't do checkins late at night ....
thanks to Volker for spotting this!
(This used to be commit d28fc5f87fd4d9a9843d1295fe2a181922a476fc)
2007-10-10 14:52:35 -05:00
Andrew Tridgell
907b98f33f r22971: fix build on systems without epoll
(This used to be commit 146303d91b4c64c87c356c3ed44ccb5774297a71)
2007-10-10 14:52:34 -05:00
Andrew Tridgell
4c20e077a1 r22970: the events code calls close(), which needs to use socket_wrapper.h in
the build farm
(This used to be commit 603d8b6f1702d10234b81ccde0649d8be63ae616)
2007-10-10 14:52:34 -05:00
Andrew Tridgell
ad1cde253e r22968: andrew bartlett pointed out that the parent process could add a fd to
the epoll context which would then appear in the children. To fix this
we need to check for pid changes in more places. Luckily on platforms
where we have epoll(), getpid() is very very cheap.
(This used to be commit 4f84e6d569f9c9d7dd902f4550735f3ce2d3b424)
2007-10-10 14:52:33 -05:00
Andrew Tridgell
878f69468d r22964: log an error on epoll_create failing on reopen
(This used to be commit a69f28599845d3ea3868a574c6b0ba8db8486ef5)
2007-10-10 14:52:32 -05:00
Andrew Tridgell
b6e64bad55 r22963: fixed the epoll/fork interaction in the epoll and aio backends
(This used to be commit aeca07659aa612bee0c4dd6bdbb24c799e912909)
2007-10-10 14:52:32 -05:00
Andrew Tridgell
59d1a2b30e r22960: added a SOCKET_FLAG_NOCLOSE to allow us to tell the socket layer that
we will handle the close of the socket
(This used to be commit d57aaf5ba60464e5e782353a0879a84f8c70dd32)
2007-10-10 14:52:31 -05:00
Andrew Tridgell
87379e0d58 r22959: cope with a rather interesting interaction between epoll() and
fork(). See
http://junkcode.samba.org/ftp/unpacked/junkcode/epoll_fork.c for why
this is needed
(This used to be commit 6d06132ea9c5a1c7d098ba13f4146dc60e811e44)
2007-10-10 14:52:31 -05:00
James Peach
66cc0b1e21 r22952: Make sure we look at extra_cflags when building custom targets.
(This used to be commit 2d990cd37410cec03fa96767b0cf84d7c17ca9c4)
2007-10-10 14:52:31 -05:00
Michael Adam
3e5335063a r22931: Fix logic in detection of the need to replace dlopen and friends.
Originally, dlfcn.o was only added to LIBREPLACEOBJ if dlopen
was found in libdl but header dlfcn.h was not appropriate.

Michael
(This used to be commit 7afa8d2a4707e999a380e747ccaae1de53a00251)
2007-10-10 14:52:30 -05:00
Andrew Tridgell
a2b2502585 r22832: merged the latest tdb changes from ctdb to Samba4
(This used to be commit a88ab4fa3a07c31bc45c612043f9e096f384eda4)
2007-10-10 14:52:22 -05:00
Andrew Tridgell
ecc54f900f r22830: merged the latest lib/events updates from ctdb to Samba4. This
includes a new EVENT_FD_AUTOCLOSE flag that prevents race conditions
where code using fd events might close a fd before releasing the
struct fd_event. That causes headaches for epoll.
(This used to be commit f1ad216de13b154a1f8747a44b0970dcc47a784a)
2007-10-10 14:52:21 -05:00
Andrew Tridgell
bc02bba449 r22829: system/select.h needs to bring in epoll.h for epoll usage in
lib/events
(This used to be commit 2c9d0b57f9cef96ac0878a9761f3c15774fda336)
2007-10-10 14:52:21 -05:00
Jelmer Vernooij
c3b00b471a r22827: Change license to LGPL (discussed with tridge).
(This used to be commit 1193c759622edd9e6843d9b7f53d9532748ce8a0)
2007-10-10 14:52:21 -05:00