1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

2529 Commits

Author SHA1 Message Date
Stefan Metzmacher
5b77d0a856 r19085: merge from samba4:
- source and destination address handling
- tcp handling

metze
(This used to be commit 98154fd43350f3edae54423756620a48e089f96d)
2007-10-10 12:15:10 -05:00
Volker Lendecke
e28ae1f5fd r19080: Fix a potential NULL dereference
(This used to be commit 682b490c23bb88a1a570bd1fcb7d2b6aa778dd14)
2007-10-10 12:15:09 -05:00
Volker Lendecke
407873df53 r19079: talloc_array can fail
(This used to be commit 7b6738522a80740824f3b96e73e7c48a0623b1b1)
2007-10-10 12:15:09 -05:00
Volker Lendecke
faaec2f04a r19076: ldb_dn_copy_partial can fail
(This used to be commit c247cf3fba13ce1a32878efcc922eadfcbc2b092)
2007-10-10 12:15:09 -05:00
Volker Lendecke
38c4955c2a r19075: Fix a potential NULL dereference
(This used to be commit 0ab5d7692c2c0fe798a067866cb236ea9c304463)
2007-10-10 12:15:08 -05:00
Volker Lendecke
14502053e9 r19072: Fix a potential NULL dereference. Simo/Tridge, not merging yet to 4_0, I'd
like you to comment.

Volker
(This used to be commit ba18c58f1fb618447ba39bae6ef8f4e6c00c4d32)
2007-10-10 12:15:08 -05:00
Simo Sorce
a65c6b3914 r19071: Backport to SAMBA_3_0 as well
(This used to be commit df148a5def06956ecd8392d259f1c408c62100fa)
2007-10-10 12:15:08 -05:00
Volker Lendecke
101428b7e5 r19067: Fix a potential NULL dereference
(This used to be commit 6a8937ed03f0ee62eb81da798e0c38b405d44731)
2007-10-10 12:15:07 -05:00
Jeremy Allison
b96aae779b r19054: Callers of gencache may not have the rights to
open read/write. Allow them to fallback to read-only.
Jeremy
(This used to be commit ec526e1b882e3ade23f90c5e3d637c72b6839da5)
2007-10-10 12:15:06 -05:00
Stefan Metzmacher
7e310277ff r19034: merge from samba4:
prepare libreplace testsuite for usage in smbtorture

metze
(This used to be commit 281677084e022336877dd141befd508a0b5c08a9)
2007-10-10 12:15:04 -05:00
Stefan Metzmacher
f0244fbffe r19031: merge from samba4:
add test that opendir() on files sets errno = ENOTDIR

metze
(This used to be commit fdad2ce7346678d29adf877b580e9285be286755)
2007-10-10 12:15:03 -05:00
Stefan Metzmacher
a831353be4 r19030: merge missing stuff from samba4:
- strnlen() and strndup() are broken on AIX
- we need some extra CFLAGS on HPUX 11.11

metze
(This used to be commit 61aa60c60ffddcbad433b26d7f3a836e4fcd8732)
2007-10-10 12:15:03 -05:00
Volker Lendecke
4cc309c3da r19016: As per Samba4 coding standards, turn tabs into spaces
(This used to be commit 3f59c8ef0c3f2a27c1c46b48fe8ee5ccacb44b7b)
2007-10-10 12:15:02 -05:00
Volker Lendecke
bffbda804d r19011: Attempt to fix the BSD RAW-CHKPATH failures: In Samba3 we rely on opendir
returning ENOTDIR when the file opened is not a directory. Can we merge this
back into Samba4?

Volker
(This used to be commit 448d7c0c4b6a1d7d9c544d39d7b461dd1c69fd8e)
2007-10-10 12:14:57 -05:00
Stefan Metzmacher
ce11194ce0 r18998: - make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
(This used to be commit 8899bc45f908a15fb496f5c0a29692e7494a56cc)
2007-10-10 12:14:55 -05:00
Stefan Metzmacher
43be47f56b r18996: merge from samba4:
- fix bug 4078
- talloc_free(talloc_autofree_context()); should not result
  in a SIGABORT on exit
- add a test for this, but this test can also pass in the standalone build
  and samba3, as samba4 uses talloc_autofree_context()

metze
(This used to be commit f5b0924f975f58bba3c13a53388ea25af51d3bc8)
2007-10-10 12:14:54 -05:00
Stefan Metzmacher
da6c811eca r18993: merge from samba4:
prepare SOCKET_WRAPPER_PCAP_FILE support

metze
(This used to be commit 372471cbad34b1d0d2159e75994c481de6eaed05)
2007-10-10 12:14:54 -05:00
Volker Lendecke
f9d077cfb3 r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
(This used to be commit 00f09d851c734cb6450feac2d6efc71a540be11f)
2007-10-10 12:14:54 -05:00
Gerald Carter
2326b147d0 r18963: * Move parts of registry headers that were still in
use to reg_objects.h
* Remove unused rpc headers
(This used to be commit 4f79d8c83db5af80078114e9fb39171380d040b1)
2007-10-10 12:14:51 -05:00
Stefan Metzmacher
3ae0baefa1 r18961: merge from samba4:
fix caching of some configure tests AC_CACHE_CHECK()
*needs* '_cv_' in the shell var to do caching...

metze
(This used to be commit c460f28b68b75342bfabe3b396dd06e07a668ec4)
2007-10-10 12:14:51 -05:00
Stefan Metzmacher
6aed2cd44e r18958: merge from samba4:
we need to include unistd.h in system/network.h because
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl

metze
(This used to be commit d8275347606cd183caea69837fd765b96d4bab71)
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
cb99b612f8 r18953: sync socket_wrapper with samba4
metze
(This used to be commit 77b0af43f0f7e52b9040a1d3edfb556a232e64f1)
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
cf5ab86a65 r18952: fix compiler warning (merge from samba4)
metze
(This used to be commit 4cd59d47c8d21685cfab45f4bcfc005c5d7cf79e)
2007-10-10 12:14:50 -05:00
Andrew Tridgell
0cc2cee8d5 r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Samba4 smbd force the umask to 0, which meant we ended up with ldb
being world writable.

This isn't really an ideal fix, as it means ldb no longer honors umask
(as it should do, like all good libraries).

Unfortunately the 'proper' fix is too complex for now

this also merges a tiny code style fix from s4 to s3
(This used to be commit dd8ec8725f168f4286bbfc00d69cd56089ba3543)
2007-10-10 12:14:49 -05:00
Stefan Metzmacher
52d45a51d3 r18920: merge socket_wrapper changes from samba4
metze
(This used to be commit b36d47c698b01a577af04205c9bdf0d588bd20e6)
2007-10-10 12:14:46 -05:00
Andrew Tridgell
45c0a4874b r18910: Change ldb_msg_add_string() to not actually add an attribute if the
string is zero length. This allows callers to not have to worry about
creating an invalid ldap attribute.

See extensive discussion on samba-technical list :-)
(This used to be commit 9e66df05a4df3d3c7b02048d80e2661103d1d40a)
2007-10-10 12:14:45 -05:00
Stefan Metzmacher
ed724f9047 r18901: try to fix the samba3 build without having ldap
vl: you were a few seconds faster than me...:-)

metze
(This used to be commit 63e5727471bdf686f292a36aa43267213fb6e2f3)
2007-10-10 12:14:44 -05:00
Volker Lendecke
b70ee55a7c r18900: Next attempt to fix the Solaris build. Not sure about whether to merge this
one. Tridge? Metze?

Volker
(This used to be commit d0eef2f6e870031538959f2308a3414fc68ef18c)
2007-10-10 12:14:44 -05:00
Jeremy Allison
f1964048a5 r18897: Fix valgrind bug found by Volker.
Jeremy.
(This used to be commit db458d3e8bdd11812cea34128df6a3c29baa59c3)
2007-10-10 12:14:43 -05:00
Volker Lendecke
ba68916c9a r18889: Add some const. What's the policy here? Should I do this in Samba4 as well?
Volker
(This used to be commit fd020a1998db7660ab093c136207df4fb09720cb)
2007-10-10 12:14:41 -05:00
Andrew Tridgell
3e2c696e45 r18866: Jeremy and Volker have given the go-ahead on the group mapping ldb
code. Yay!

This first commit copies lib/ldb/ from Samba4. A huge congratulations
should go to Simo on this - he has put an enormous amount of work into
ldb, and it's great to see it go into the Samba3 tree.
(This used to be commit bbedf2e34315f5c420a3a05dfe22b1d5cf79f042)
2007-10-10 12:14:36 -05:00
Andrew Tridgell
64d4ff5dcc r18864: merge lib/replace changes from samba4
(This used to be commit 6d5f507136be327558e98214b64eca225ca23d66)
2007-10-10 12:01:06 -05:00
Stefan Metzmacher
21931b1ca8 r18810: use a copy of samba4's talloc under lib/talloc/
to make mergeing easier.

metze
(This used to be commit d49ffbc19b29f7620e427de133ffab74721f37e8)
2007-10-10 12:01:02 -05:00
Jeremy Allison
3a60a67432 r18793: Fix BE string handling in the auto-generated
code. Should now work again with ASU.
Jeremy.
(This used to be commit 53e97bf92817b6cfc3f93c999a81ef8ad49a1609)
2007-10-10 12:00:58 -05:00
Jeremy Allison
f18c9365ca r18787: Fix the strlen_m and strlen_m_term code by merging
in (and using elsewhere) next_codepoint from Samba4.
Jerry please test.
Jeremy.
(This used to be commit ece00b70a4621633f1ac9e576c4bbe332031de09)
2007-10-10 12:00:57 -05:00
Stefan Metzmacher
beecb90440 r18784: hopefully fix the BOOL bug on AIX
metze
(This used to be commit 454d9590de6ff94a1edd7321e26af0f0978a356a)
2007-10-10 12:00:57 -05:00
Jelmer Vernooij
4db7642caa r18745: Use the Samba4 data structures for security descriptors and security descriptor
buffers.

Make security access masks simply a uint32 rather than a structure
with a uint32 in it.
(This used to be commit b41c52b9db5fc4a553b20a7a5a051a4afced9366)
2007-10-10 12:00:54 -05:00
Stefan Metzmacher
2fb8589862 r18709: add some useful function from samba4
metze
(This used to be commit f7a93b6acb705256c2aa4fe6475b89223af30491)
2007-10-10 12:00:49 -05:00
Günther Deschner
a62f996c5a r18707: Fix the build when you have libnscd installed (which apparently no host
on the buildfarm has).

Guenther
(This used to be commit b0bb364df0efe140780328d90ae55bb823e6b10d)
2007-10-10 12:00:49 -05:00
Stefan Metzmacher
f21e9f5780 r18705: not all compilers like this
metze
(This used to be commit 2ec4bc0f5299f295525f306279ddb136e0b19ee1)
2007-10-10 12:00:49 -05:00
Günther Deschner
a3e1f7e44d r18703: Fix the annoying effect that happens when nscd is running:
We usually do not get the results from user/group script modifications
immediately. A lot of users do add nscd restart/refresh commands into
their scripts to workaround that while we could flush the nscd caches
directly using libnscd.

Guenther
(This used to be commit 7db6ce295afbedfada7b207ad56566d2195a0d21)
2007-10-10 12:00:49 -05:00
Stefan Metzmacher
a1243ca999 r18698: this stuff isn't needed anymore
metze
(This used to be commit 31b83ff4bd568a393eaa6260366ece7501df1985)
2007-10-10 12:00:48 -05:00
Stefan Metzmacher
387a8ed33e r18687: sync the lib/interfaces.c with lib/socket/netif.c from samba4
to hopefully fix the build on HPUX and Tru64

metze
(This used to be commit aa8222c6a709a1538862878b89a17b893600b7e8)
2007-10-10 12:00:47 -05:00
Stefan Metzmacher
bc6295c3ec r18673: define the macros even if we don't define bool ourself
metze
(This used to be commit 65013a8d9e678c44cecae07967b7a001b796faf1)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
7040796108 r18672: fix the build on Tru64
metze
(This used to be commit 6c101d206812fe24233409e0757cad52638e685a)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
8383eb53f4 r18671: try to fix the build on solaris 10 and maybe some other hosts
we need to define 'BOOL_DEFINED' to make sure it didn't get redefined
by <rpcsvc/yp_prot.h>

metze
(This used to be commit 5a589bb16c2bb3da75874bd190384eabd39eb972)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
3fe99c960f r18669: fix the samba3 build...
we need to move the iconv configure checks to libreplace...

metze
(This used to be commit 6b53ed8fdc2a4c0b3b24e22ada90d14d60cc93fb)
2007-10-10 12:00:45 -05:00
Volker Lendecke
4d451bd213 r18661: C++ warnings
(This used to be commit 6004b8025de3207f5af2d62087ec13c5e444fec7)
2007-10-10 11:52:20 -05:00
Jelmer Vernooij
4e7d11449a r18654: Rename "struct uuid" => "struct GUID" for consistency.
(This used to be commit 5de76767e857e9d159ea46e2ded612ccd6d6bf19)
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
ac76c1804c r18652: libreplace has replacements for strndup and strnlen
metze
(This used to be commit 9f3599a7ca636dd21c150873f395abde153ee6fd)
2007-10-10 11:52:19 -05:00