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

25116 Commits

Author SHA1 Message Date
Michael Adam
a1af15d29f Reorder the registry key name constants in a more systematic way.
Michael
(This used to be commit faf406a4a1)
2008-01-20 02:26:22 +01:00
Michael Adam
25c21fb562 Use some consts instead of literal strings for registry keys.
Michael
(This used to be commit 80024f4e1c)
2008-01-20 02:03:41 +01:00
Michael Adam
8eed06fb8c Some reformatting in hkpt_params_fetch_values().
Michael
(This used to be commit f245c4e094)
2008-01-20 02:03:40 +01:00
Michael Adam
949a88ee2f Add a registry backend hkpt_params that replaces the former dynamic overlay.
Michael
(This used to be commit 8e8bb6ba12)
2008-01-20 02:03:40 +01:00
Michael Adam
b4e3c75272 Some reformatting in tcpip_params_fetch_values().
Michael
(This used to be commit 5b3813b233)
2008-01-20 02:03:40 +01:00
Michael Adam
c5a5b404b4 Add a registry backend tcpip_params that replaces the former dynamic overlay.
Michael
(This used to be commit a8a743b693)
2008-01-20 02:03:40 +01:00
Michael Adam
f383b853f5 Some reformatting in prod_options_fetch_values().
Michael
(This used to be commit 347b988654)
2008-01-20 02:03:39 +01:00
Michael Adam
663815ec2b Add a registry backend prod_options that replaces the former dynamic overlay.
Michael
(This used to be commit d9b89e9d30)
2008-01-20 02:03:39 +01:00
Michael Adam
d48c5f1599 Some reformatting in netlogon_params_fetch_values().
Michael
(This used to be commit 24f13fb72e)
2008-01-20 02:03:39 +01:00
Michael Adam
2e47997e6e Rename netlogon_params_fetch_reg_values() to netlogon_params_fetch_values().
Michael
(This used to be commit 54e7c80985)
2008-01-20 02:03:39 +01:00
Michael Adam
c8a0b2a3a2 In reg_backend_netlogon_params, delegate fetch_subkeys() to regdb.
In order to be able to open the netlogon_params key (the new backend replacing
the former dynamic overlay), certain methods need to be provided. Delegate these
to the regdb backend (like e.g. the smbconf backend does).

Michael
(This used to be commit 9261b2c4bf)
2008-01-20 02:03:38 +01:00
Michael Adam
1b2dd2dcc8 Fix registering Registry backends in reghook_cache_add().
This was broken in 331c0d6216
(pstring removal).

Michael
(This used to be commit 7d1e986f3a)
2008-01-20 02:03:38 +01:00
Michael Adam
563c4ef740 Use constant KEY_NETLOGON_PARAMS instead of literal key.
Michael
(This used to be commit daf37c9545)
2008-01-20 02:03:38 +01:00
Michael Adam
139340f570 Volker is right: why keep commented out migrated dynamic reg overlays around?...
Michael
(This used to be commit a73b8d16aa)
2008-01-20 02:03:38 +01:00
Michael Adam
cb1e0de56f Use c99 struct initializers for REGISTRY_OPS in reg_shares.c
Michael
(This used to be commit 2c4dfd7aaa)
2008-01-20 02:03:38 +01:00
Michael Adam
15015b7490 Use c99 struct initializers for REGISTRY_OPS in reg_printing.c
Michael
(This used to be commit a89bee4139)
2008-01-20 02:03:37 +01:00
Michael Adam
29af710d6a Use c99 struct initializers for REGISTRY_OPS in reg_smbconf.c.
Michael
(This used to be commit 96d116b003)
2008-01-20 02:03:37 +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
dfd05b9b65 vfs_streams_depot
Store streams in a file each. Not 100% finished, and not built by default.
(This used to be commit 5f5fc72b01)
2008-01-19 23:36:34 +01:00
Volker Lendecke
4ba64fce49 vfs_streams_xattr module
Store streams in posix xattrs. A kludge, as xattrs are limited in many ways,
but it might be a help for some situations.
(This used to be commit 83a805220e)
2008-01-19 23:34:22 +01:00
Volker Lendecke
1069cfe4ad Add streams support
This is the core of the streams support. The main change is that in
files_struct there is now a base_fsp pointer that holds the main file open
while a stream is open. This is necessary to get the rather strange delete
semantics right: You can't delete the main file while a stream is open without
FILE_SHARE_DELETE, and while a stream is open a successful unlink of the main
file leads to DELETE_PENDING for all further access on the main file or any
stream.
(This used to be commit 6022873cc1)
2008-01-19 23:25:36 +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
1b976d5192 Add the STREAMINFO vfs call
Based on jpeach's work, modified the streaminfo prototype

Make use of it in trans2.c together with marshall_stream_info()
(This used to be commit c34d729c7c)
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
Volker Lendecke
70f88005c7 Fix error return in xattr_tdb_load_attrs
(This used to be commit 64e54ea8f7)
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 197b08ad78)
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 aec357a456)
2008-01-19 16:07:56 +01:00
Volker Lendecke
6d7eb2e6ec Make get_ea_value public
(This used to be commit 0aa406bbba)
2008-01-19 15:50:05 +01:00
Volker Lendecke
5a48ee89b8 Fix the build
... forgot to "git add" it
(This used to be commit 6d0a727f26)
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 76cf5a979b)
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 97768628f5)
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 af43842622)
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 2479a0c3ad)
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 f8243d1913)
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 4a475baf26)
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 924c4ede2a)
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 63defd3e9d)
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 e96cf1309e)
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 ab0ee6e9a6)
2008-01-19 02:20:16 +01:00
Jeremy Allison
b97fbf5888 Fix error message for new allinfo command.
Jeremy.
(This used to be commit 3a1bcbfa7c)
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 843e1694cf)
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 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