1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

3412 Commits

Author SHA1 Message Date
Günther Deschner
2e0a1fcf3f Re-run make idl.
Guenther
(This used to be commit b658270518)
2008-01-31 14:10:22 +01:00
Andrew Tridgell
6b5980e47e merged tdb transaction fix
(This used to be commit 1a1c795436)
2008-01-31 09:48:20 +11:00
Günther Deschner
5ab43ae0d8 Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Guenther
(This used to be commit fd490d236b)
2008-01-29 15:09:56 +01:00
Volker Lendecke
fe478af26a We need to leave the corepath around
In case we need to dump core, in line 191 we dereference corepath to be able to
chdir there.

Jeremy, please check!

Volker
(This used to be commit 3959b1954b)
2008-01-27 10:24:31 +01:00
Tim Potter
54db183987 Adding missing calls to va_end().
Just a small commit to get a handle on this git thingy.  This patch
fixes some missing calls to va_end() to match various calls to va_start()
and VA_COPY().

Tim.
(This used to be commit ec367f307d)
2008-01-27 09:33:42 +01:00
Volker Lendecke
e2ad28509c Tiny simplification
(This used to be commit e78f6872bf)
2008-01-25 20:55:51 +01:00
Volker Lendecke
31a6f80784 Remove a pointless while loop
(This used to be commit f591bd68ea)
2008-01-25 20:55:51 +01:00
Günther Deschner
c04b738a13 Add LIBNETAPI_LOCAL_SERVER() macro.
Guenther
(This used to be commit 4bdcf07bcc)
2008-01-25 17:21:29 +01:00
Günther Deschner
a30361ede3 No need to close registry on libnetapi_free() anymore.
Guenther
(This used to be commit 6bf75652ef)
2008-01-25 17:21:19 +01:00
Volker Lendecke
9344628bef More read_data -> read_socket_with_timeout
(This used to be commit f1d7de462c)
2008-01-24 09:41:22 +01:00
Volker Lendecke
a925a53f61 read_socket_with_timeout has timeout=0 handling
(This used to be commit 7101026061)
2008-01-23 17:09:10 +01:00
Volker Lendecke
587cf54c61 strtok -> strtok_r
(This used to be commit fd34ce4370)
2008-01-23 15:08:04 +01:00
Michael Adam
a60b913a37 Fix tab_depth: it should not create an extra debug header.
In pstring removal 4ae4b23586, the behaviour of tab_depth was
changed to create an extra debug header (by using the DEBUGLVL
macro).

This extracts the debug level check from DEBUGLVL into
a macro CHECK_DEBUGLVL without the debug header creation
and uses this instead of DEBUGLVL in tab_depth.

Michael
(This used to be commit cbc7d921fa)
2008-01-23 08:16:37 +01:00
Volker Lendecke
d4d962f691 Move samba_extended_info_version to smbd/trans2.c
This is right now only used there, and in version.c it gave linker errors
because some binaries (e.g. smbmnt) don't link in time.o
(This used to be commit 1f0eaaa591)
2008-01-22 13:00:22 +01:00
Volker Lendecke
1d99598ca3 Avoid use of uninitialized memory
(This used to be commit 85123aacdb)
2008-01-22 12:46:51 +01:00
Corinna Vinschen
559603ad69 Get Samba version or capability information from Windows
On Jan 21 16:18, Danilo Almeida wrote:
> Corina wrote:
>
> > +	time_t samba_gitcommitdate;
>
> And:
>
> > +   SIVAL(pdata,28,extended_info.samba_gitcommitdate);
> > +   memcpy(pdata+32,extended_info.samba_version_string,32);
>
> Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem.

Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
samba_version_string to 28 bytes.  New patch below.

Thanks,
Corinna
(This used to be commit 28aa1c199d)
2008-01-22 12:39:47 +01:00
Stefan Metzmacher
f5df4a100a libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(This used to be commit 2f46091511)
2008-01-22 12:21:55 +01:00
Kai Blin
36e3e75e06 util_sock: Don't return a pointer to freed memory.
Fix a bug in my bugfix. Thanks to vl for spotting that one.
(This used to be commit 24f68b90cc)
2008-01-21 18:02:24 +01:00
Kai Blin
7b6a439efe util_sock: Fix memcache bug in get_mydnsfullname.
get_mydnsfullname relied on memcache_add(); memcache_lookup() working.
When run from ntlm_auth, the global_cache variable in memcache is NULL, so
the add and lookup both fail. In that case, just return the result of the
getaddrinfo call.

Jeremy, please check.
(This used to be commit 1db41ff525)
2008-01-21 13:28:06 +01:00
Michael Adam
99dfd66488 Rename lib/util_reg_smbconf.c to registry/reg_init_smbconf.c
This actually is a counterpart to reg_init_full, in that is does
open and initialize the registry too, but only registeres the backends
necessary to access the SMBCONF key.

Michael
(This used to be commit 01bda3ab35)
2008-01-21 08:49:12 +01:00
Volker Lendecke
33f3eeaa00 Fix some "set but never used" warnings
(This used to be commit 4a6dadc517)
2008-01-20 17:44:40 +01:00
Volker Lendecke
014bfd35f8 Some systems do not have XATTR_ defined
(This used to be commit 2cac1d3919)
2008-01-20 00:44:14 +01:00
Volker Lendecke
2411c6cb90 Add "split_ntfs_stream_name()" together with a torture test
(This used to be commit d813bd9e02)
2008-01-19 23:10:09 +01:00
Volker Lendecke
14e7c292bc Add an error mapping for ENOATTR
(This used to be commit 9f0d778490)
2008-01-19 22:58:17 +01:00
Volker Lendecke
07e07f696a Use SAFE_FREE instead of free
(This used to be commit 9996473290)
2008-01-19 19:31:02 +01:00
Corinna Vinschen
a0bd9d97a3 Tiny memory leak in lib/version.c
Hi,

while implementing the extra_info version stuff, it occured to me that
samba_version_string() potentially allocates memory which is unused but
never free'd.

If SAMBA_VERSION_VENDOR_PATCH is defined, a second call to asprintf
takes place.  The result is stored in tmp_version.  Afterwards,
samba_version is set to tmp_version without free'ing samba_version
first.  Looks like a simple free(samba_version) is missing.  Patch
against 3.2-test below.

Ok, this only happens once over the lifetime of the application, so it's
no big deal, but I though it doesn't hurt to mention it.

Corinna

	* lib/version.c (samba_version_string): Free samba_version
	before setting to tmp_version.
(This used to be commit 373a23d48f)
2008-01-19 19:30:16 +01:00
Kai Blin
398c323f75 afs: Use talloc_stackframe() instead of talloc_init()
Thanks to vl for pointing this out.
(This used to be commit 76cf5a979b)
2008-01-19 13:17:09 +01:00
Kai Blin
805caafd44 util_str: Don't return memory from talloc_tos(), use mem_ctx instead.
(This used to be commit ab0ee6e9a6)
2008-01-19 02:20:16 +01:00
Stefan Metzmacher
db449a4c5f Revert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"
This reverts commit e33286f4a6.

393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix
for the same problem.

metze
(This used to be commit b8a57a24c3)
2008-01-18 17:02:13 +01:00
Jelmer Vernooij
a0e04a9417 libreplace: Escape asterisk.
(cherry picked from commit df36c78549)
(This used to be commit 174a45ec18)
2008-01-18 17:02:13 +01:00
Jelmer Vernooij
f8ad02305f Try to fix the build on Tru64; avoid single quotes because they get expanded by perl in the build system.
(cherry picked from commit bba8914af5)
(This used to be commit a0e663ff2c)
2008-01-18 17:02:12 +01:00
Stefan Metzmacher
1e5418edbc r26550: libreplace: fallback to __ss_family of struct sockaddr_storage
metze
(cherry picked from commit 11bdc9bed8)
(This used to be commit c11122afda)
2008-01-18 17:02:12 +01:00
Stefan Metzmacher
a2bfb1749c r26102: libreplace: remove system/printing.h as it only contains samba3 stuff
metze
(cherry picked from commit 1ecb4ec01b)
(This used to be commit ff8a001f0d)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
0e1348869e r25976: libreplace: not all platforms like _XOPEN_SOURCE=600
- Only use _XOPEN_SOURCE=600 on Tru64
- _OSF_SOURCE is also Tru64 specific

metze
(cherry picked from commit d19ab62081)
(This used to be commit dbff70b2eb)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
f75898d5b5 r25974: libreplace: see what the build-farm says if we use _XOPEN_SOURCE=600
On Tru64 this brings in socklen_t and some other socket stuff

metze
(cherry picked from commit d42f2e5759)
(This used to be commit af3772e22f)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
2e0dc77bda r25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE
metze
(cherry picked from commit 05b4619c5b)
(This used to be commit 58932ca791)
2008-01-18 17:02:10 +01:00
Stefan Metzmacher
928f899948 r25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h
metze
(cherry picked from commit a07c983fde)
(This used to be commit 3db37038b3)
2008-01-18 17:02:10 +01:00
Günther Deschner
db40120c73 Fix the build w/o ADS.
Guenther
(This used to be commit 645f2376d4)
2008-01-18 08:50:33 +01:00
Günther Deschner
9dd8940e5f Add header for NetGetJoinableOUs to libnetapi.
Guenther
(This used to be commit f297ea259d)
2008-01-18 08:49:24 +01:00
Andrew Tridgell
313a21b4d9 merged changes from v4-0-test
(This used to be commit 8c89d60924)
2008-01-18 15:46:15 +11:00
Günther Deschner
b18fd380bd Add NetGetJoinableOUs() to libnetapi (incl. example).
Guenther
(This used to be commit 8858e403e1)
2008-01-18 02:55:19 +01:00
Günther Deschner
b1424846c6 Cosmetics and error string reporting for libnetapi.
Guenther
(This used to be commit 4ca3392851)
2008-01-18 02:55:10 +01:00
Günther Deschner
cfb7e25466 Add some more debugging into netdomjoin-gui.
Guenther
(This used to be commit d4c5b32322)
2008-01-18 02:54:49 +01:00
Günther Deschner
bb97b272a9 Fix local hostname detection in netdomjoin-gui.
Guenther
(This used to be commit 30458116b3)
2008-01-18 02:54:36 +01:00
Günther Deschner
c2ff6c94f2 Improve libnetapi_set_error_string().
Guenther
(This used to be commit 96f645553a)
2008-01-18 02:54:29 +01:00
Günther Deschner
d1abd4d866 Use new pidl-generated netlogon client calls in NetApi GetDcName().
Guenther
(This used to be commit 733e07a06c)
2008-01-17 16:54:46 +01:00
Jeremy Allison
bd8abea49f Fix IPv6 bug #5204, which caused krb5 DNS lookups
for a name '[<ipv6 addr>'.
Jeremy.
(This used to be commit f2aa921505)
2008-01-16 13:21:46 -08:00
Volker Lendecke
5b37e815b4 Don't try ftruncate when the tdb is opened read-only
Tridge, Jeremy, please check!

Thanks,

Volker
(This used to be commit e4f46d5274)
2008-01-16 21:18:26 +01:00
Volker Lendecke
7084854bd9 Next try to fix the max dead record calculation
(This used to be commit 4f95c58040)
2008-01-16 21:04:52 +01:00
Volker Lendecke
c308d76305 Fix some C++ warnings
(This used to be commit 625241c477)
2008-01-16 20:29:41 +01:00