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

24941 Commits

Author SHA1 Message Date
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 373a23d48f2dd24e65dbf814ea58b4add2322128)
2008-01-19 19:30:16 +01:00
Volker Lendecke
70f88005c7 Fix error return in xattr_tdb_load_attrs
(This used to be commit 64e54ea8f76fe57193955aabc1459fe635233aca)
2008-01-19 18:51:20 +01:00
Volker Lendecke
3b889a256b The remote storage op is gone
Alexander, I think this ok...
(This used to be commit 197b08ad789c4968155f1c711ef43a5383a89289)
2008-01-19 16:19:28 +01:00
Volker Lendecke
84518f1fc7 Add get_ea_names_from_file to sanely list posix xattrs
Refactor get_ea_list_from_file to use that.
(This used to be commit aec357a456798050abe565d2a744ed5f17ad5901)
2008-01-19 16:07:56 +01:00
Volker Lendecke
6d7eb2e6ec Make get_ea_value public
(This used to be commit 0aa406bbba8699063ea3758b19dca24cf42ff15a)
2008-01-19 15:50:05 +01:00
Volker Lendecke
5a48ee89b8 Fix the build
... forgot to "git add" it
(This used to be commit 6d0a727f26dd0945634486f18a55aa8dd5813983)
2008-01-19 13:39:24 +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 76cf5a979bf3014b1de660520e538546b3676b23)
2008-01-19 13:17:09 +01:00
Kai Blin
b133f5ac0a ntlm_auth: Get rid of statics in manage_squid_ntlmssp_request
(This used to be commit 97768628f5ec533818b7f5165e92c156d668b79b)
2008-01-19 13:16:24 +01:00
Kai Blin
4b05fd29e6 ntlm_auth: Rewrite manage_client_ntlmssp_request without statics.
(This used to be commit af438426222f4990f3e4103babbbb5de03ade93d)
2008-01-19 13:16:24 +01:00
Kai Blin
40db1a1625 nltm_auth: Use struct ntlm_auth_state in helper functions.
Now rewriting the helpers one after the other can start.
(This used to be commit 2479a0c3adf46b2d0a9b109ce689c93296f16a62)
2008-01-19 13:16:24 +01:00
Kai Blin
83f30d72e0 ntlm_auth: Prepare for a deeper rewrite of the helper functions
(This used to be commit f8243d1913cd19401ce6a13f53c6b84a36fc9dd6)
2008-01-19 13:16:24 +01:00
Kai Blin
f22a29e1bd ntlm_auth: Dynamically allocate the read buffer.
This ports over my changes from Samba4
(This used to be commit 4a475baf26ba9f99bc05f13dd2745494174a00c1)
2008-01-19 13:16:23 +01:00
Volker Lendecke
7b73ad2755 Link ndr_xattr.o with LIBNDR_GEN_OBJ
It will be used elsewhere (net xattr for example)
(This used to be commit 924c4ede2acbd4e1d327ccdefc92bbbb3d67d7d8)
2008-01-19 12:54:46 +01:00
Jeremy Allison
ca6cf1fe94 Actually test vl's new code and make it work to fix the build farm :-).
Jeremy.
(This used to be commit 63defd3e9d4ba3f02f36ec5ad7b73463f31962a1)
2008-01-18 18:39:27 -08:00
Volker Lendecke
145ab107b2 Always return nlink=1 for directories
I did not test it, but it should not affect cifsfs, there are special posix
calls that also return the stat information unfiltered.
(This used to be commit e96cf1309e45628f4c27d03f77a4eef5e00602df)
2008-01-18 17:37:04 -08:00
Kai Blin
805caafd44 util_str: Don't return memory from talloc_tos(), use mem_ctx instead.
(This used to be commit ab0ee6e9a6a9eee317228f0c2bde254ad9a59b85)
2008-01-19 02:20:16 +01:00
Jeremy Allison
b97fbf5888 Fix error message for new allinfo command.
Jeremy.
(This used to be commit 3a1bcbfa7ca2b55265eb486e2b7c740e04775698)
2008-01-18 13:47:10 -08:00
Derrell Lipman
bb707b1db6 Fix typo that disabled setting group id. Thanks, Henrik.
(This used to be commit 843e1694cfe4a999ed14a9c215b8e77723d0fe79)
2008-01-18 14:22:49 -05:00
Stefan Metzmacher
db449a4c5f Revert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"
This reverts commit e33286f4a68352e55df081d06307f64f190773b3.

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

metze
(This used to be commit b8a57a24c390355c4950ca499c1d96aff80abad7)
2008-01-18 17:02:13 +01:00
Jelmer Vernooij
a0e04a9417 libreplace: Escape asterisk.
(cherry picked from commit df36c78549b40ee5e47d5cc79de2eb79f58c567a)
(This used to be commit 174a45ec18fff064d89f6a12b044973ab3c10c54)
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 bba8914af56cb161c275fbbdea2479d6f8bd703c)
(This used to be commit a0e663ff2c6548e48c9710e3fb314f3bbabb59d0)
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 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)
(This used to be commit c11122afda52ce787dd1d3357bd85b6ce36b8ca4)
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 1ecb4ec01b0506c95a5f90a62040329e7a39ee93)
(This used to be commit ff8a001f0d3f2655efafed41f2f0b14552a5c7e7)
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 d19ab62081ce4ee4273ff752ad0443782a994826)
(This used to be commit dbff70b2ebe7cc09f7fbe5a0319f978dfcfa1da9)
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 d42f2e5759332f1f0c6c1269bd29ac62ddb11016)
(This used to be commit af3772e22f5e6e0158783086e9791ffc95ee5368)
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 05b4619c5beff474488d1abe5e647acd94a3e20c)
(This used to be commit 58932ca791024bd9a543ff5e21bc26970ceed477)
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 a07c983fde52607806745914bb41039afb5618cc)
(This used to be commit 3db37038b3e5a59a9baa85f6bcd32ac6e5ec2da1)
2008-01-18 17:02:10 +01:00
Michael Adam
27d9ac3219 Use C99 structure initializers for netlogon_params_reg_ops.
Michael
(This used to be commit f3901f179b770ffadb3e5a82ac5a2da00d83f40a)
2008-01-18 12:07:04 +01:00
Volker Lendecke
3d3d6e7020 Add the "allinfo" command to smbclient
Modeled after the Samba4 allinfo command
(This used to be commit 3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52)
2008-01-18 11:08:17 +01:00
Michael Adam
60fbc7e4f0 Add a registry backend netlogon_params that replaces the former dynamic overlay.
This is the first step in replacing the dynamic overlays by proper
backends implementing REGISTRY_OPS.

Michael
(This used to be commit e8a0524961d81fa83e0316905dc9d215e4aa7656)
2008-01-18 09:40:57 +01:00
Michael Adam
1ea809383e Fix typo in debug message.
Michael
(This used to be commit d7a8d7ffbd724a59aa3fc4bdeca6be5d5a0e7258)
2008-01-18 09:40:57 +01:00
Günther Deschner
db40120c73 Fix the build w/o ADS.
Guenther
(This used to be commit 645f2376d40fabdc787902ac7506ad7234616619)
2008-01-18 08:50:33 +01:00
Günther Deschner
9dd8940e5f Add header for NetGetJoinableOUs to libnetapi.
Guenther
(This used to be commit f297ea259d58f7a12924b7111ab79818188cff46)
2008-01-18 08:49:24 +01:00
Andrew Tridgell
313a21b4d9 merged changes from v4-0-test
(This used to be commit 8c89d60924b0380231da834cd3c097b4f8cdc369)
2008-01-18 15:46:15 +11:00
Günther Deschner
b18fd380bd Add NetGetJoinableOUs() to libnetapi (incl. example).
Guenther
(This used to be commit 8858e403e1940c362d307b4d4125f977abb0b96a)
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 4ca33928512bd71268bafd41d2b608e814a7295f)
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 d4c5b323229c6f43c824e3559084c98e370730a5)
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 30458116b389889cad845eb96b54c3edc833e722)
2008-01-18 02:54:36 +01:00
Günther Deschner
c2ff6c94f2 Improve libnetapi_set_error_string().
Guenther
(This used to be commit 96f645553ae5c75aabfe588e1a67f3d4bfacb5cb)
2008-01-18 02:54:29 +01:00
Michael Adam
80d7cccfe7 Add and correct some WERROR codes.
Michael
(This used to be commit 7aec862ddc2aa2b5152c3a452971e55ba43646a5)
2008-01-18 01:10:55 +01:00
Derrell Lipman
add597f77c Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 7135d2aea5a68a79e2a77d4a02219436f5e154cc)
2008-01-17 11:50:41 -05:00
Derrell Lipman
46080b0f4e stop bothering me about example programs not checked in
(This used to be commit 41ad5c7700c5ef3839c0629ee5eb42ec0fe61da6)
2008-01-17 11:50:22 -05:00
Derrell Lipman
4f09727df8 Fix bug 5185: repeated calls to smbc_getxattr() lose sid-name mapping
If we're going to cache connections to IPC$, we'd better also cache the policy
handle and not use a stack-based handle that's invalid on subsequent calls.

Derrell
(This used to be commit 67c415661f6466c21cd0eaafabe58cba049d2af3)
2008-01-17 11:49:17 -05:00
Derrell Lipman
76b5c674e7 Add a program to test repeated calls to smbc_getxattr().
(This used to be commit f5f46de404dba2e4a03d205a62cd5cf7ea4e075a)
2008-01-17 11:46:41 -05:00
Volker Lendecke
9e3634fb63 Fix two uninitialized variables in vfs_hpuxacl.c
Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208.

Volker
(This used to be commit a3b36c3cb0fe5f3e78c200290afa59829934f496)
2008-01-17 17:22:31 +01:00
Günther Deschner
d1abd4d866 Use new pidl-generated netlogon client calls in NetApi GetDcName().
Guenther
(This used to be commit 733e07a06ce3c903ff5837df6a5119f6d6e3eccb)
2008-01-17 16:54:46 +01:00
Günther Deschner
10a55fb4ea Include auto-generated client headers for netlogon/samr.
Guenther
(This used to be commit ad8f6933322e7175b74cc3de525fda58ae150baa)
2008-01-17 16:54:46 +01:00
Günther Deschner
a92eb76688 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
(This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)
2008-01-17 16:54:46 +01:00
Günther Deschner
a2b0e355e5 Re-run make idl to regnerated netlogon.
Guenther
(This used to be commit 0230284cfa83477ad5a084a7970db1ea0cfe8563)
2008-01-17 16:54:46 +01:00
Günther Deschner
89759b1d03 Add NETLOGON_GRACE_LOGON flag to netr_UserFlags.
Guenther
(This used to be commit 9097846466a8dea171f4d241661083f896591292)
2008-01-17 16:54:46 +01:00