1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-26 23:33:15 +03:00
Commit Graph

21907 Commits

Author SHA1 Message Date
Volker Lendecke
c1794375d1 Really remove the _NEXT_ from vfs_xattr_tdb.c
This must have been lost somewhere in my patch-mangling
2008-01-20 13:49:38 +01:00
Volker Lendecke
3509ee597f Support XATTR_CREATE and XATTR_REPLACE in vfs_xattr_tdb 2008-01-20 11:20:58 +01:00
Volker Lendecke
dac468216e Complete the ea->xattr rename in vfs_xattr_tdb 2008-01-20 11:10:06 +01:00
Volker Lendecke
9e71c89ac6 Fix a segfault
Pointed out by Steven Danneman on irc, thanks!

Jerry, Günther, please check!
2008-01-20 09:05:42 +01:00
Jeremy Allison
7bb7a0def6 Couple of minor fixes for POSIX pathname processing in the
new stream code. (1) In smbd/filename, don't split the name at
':' if we know it's a posix path (this should be parameterized....).
(2). When calling posix_mkdir, we get the flag FILE_FLAG_POSIX_SEMANTICS
passed to open_directory(). I know for a posix client lp_posix_pathnames
should be true (which is checked for in is_ntfs_stream_name() but we
have an explicit flag here, so let's use it.
Jeremy.
2008-01-19 21:53:49 -08:00
Michael Adam
487c43f928 Do an explicit init_globals() when restarting for "config backend = registry".
Michael
2008-01-20 03:54:57 +01:00
Michael Adam
239aa59cc1 Add a debug message to fetch_reg_values().
Michael
2008-01-20 03:54:56 +01:00
Michael Adam
2a27892880 Add some debugging output to reg_cachehook.c
Michael
2008-01-20 03:54:56 +01:00
Michael Adam
e327953bd6 Remove the dynamic registry overlay.
It is unnecessary now the dynamic functions have been made
registry backends of their own.

Michael
2008-01-20 03:47:37 +01:00
Michael Adam
c3fba41595 Add a registry backend perflib that replaces the former dynamic overlay.
Michael
2008-01-20 03:47:37 +01:00
Michael Adam
d2e3814db8 Some reformatting of current_version_fetch_values().
Michael
2008-01-20 03:47:37 +01:00
Michael Adam
2c650bf63c Add a registry backend current_version that replaces the former dynamic overlay.
Make sure to only respond to the exact current version key since subkeys
are registered by other backends (printing and - soon - perflib).

Michael
2008-01-20 03:47:36 +01:00
Michael Adam
faf406a4a1 Reorder the registry key name constants in a more systematic way.
Michael
2008-01-20 02:26:22 +01:00
Michael Adam
80024f4e1c Use some consts instead of literal strings for registry keys.
Michael
2008-01-20 02:03:41 +01:00
Michael Adam
f245c4e094 Some reformatting in hkpt_params_fetch_values().
Michael
2008-01-20 02:03:40 +01:00
Michael Adam
8e8bb6ba12 Add a registry backend hkpt_params that replaces the former dynamic overlay.
Michael
2008-01-20 02:03:40 +01:00
Michael Adam
5b3813b233 Some reformatting in tcpip_params_fetch_values().
Michael
2008-01-20 02:03:40 +01:00
Michael Adam
a8a743b693 Add a registry backend tcpip_params that replaces the former dynamic overlay.
Michael
2008-01-20 02:03:40 +01:00
Michael Adam
347b988654 Some reformatting in prod_options_fetch_values().
Michael
2008-01-20 02:03:39 +01:00
Michael Adam
d9b89e9d30 Add a registry backend prod_options that replaces the former dynamic overlay.
Michael
2008-01-20 02:03:39 +01:00
Michael Adam
24f13fb72e Some reformatting in netlogon_params_fetch_values().
Michael
2008-01-20 02:03:39 +01:00
Michael Adam
54e7c80985 Rename netlogon_params_fetch_reg_values() to netlogon_params_fetch_values().
Michael
2008-01-20 02:03:39 +01:00
Michael Adam
9261b2c4bf 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
2008-01-20 02:03:38 +01:00
Michael Adam
7d1e986f3a Fix registering Registry backends in reghook_cache_add().
This was broken in 331c0d6216
(pstring removal).

Michael
2008-01-20 02:03:38 +01:00
Michael Adam
daf37c9545 Use constant KEY_NETLOGON_PARAMS instead of literal key.
Michael
2008-01-20 02:03:38 +01:00
Michael Adam
a73b8d16aa Volker is right: why keep commented out migrated dynamic reg overlays around?...
Michael
2008-01-20 02:03:38 +01:00
Michael Adam
2c4dfd7aaa Use c99 struct initializers for REGISTRY_OPS in reg_shares.c
Michael
2008-01-20 02:03:38 +01:00
Michael Adam
a89bee4139 Use c99 struct initializers for REGISTRY_OPS in reg_printing.c
Michael
2008-01-20 02:03:37 +01:00
Michael Adam
96d116b003 Use c99 struct initializers for REGISTRY_OPS in reg_smbconf.c.
Michael
2008-01-20 02:03:37 +01:00
Volker Lendecke
2cac1d3919 Some systems do not have XATTR_ defined 2008-01-20 00:44:14 +01:00
Volker Lendecke
5f5fc72b01 vfs_streams_depot
Store streams in a file each. Not 100% finished, and not built by default.
2008-01-19 23:36:34 +01:00
Volker Lendecke
83a805220e 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.
2008-01-19 23:34:22 +01:00
Volker Lendecke
6022873cc1 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.
2008-01-19 23:25:36 +01:00
Volker Lendecke
d813bd9e02 Add "split_ntfs_stream_name()" together with a torture test 2008-01-19 23:10:09 +01:00
Volker Lendecke
9f0d778490 Add an error mapping for ENOATTR 2008-01-19 22:58:17 +01:00
Volker Lendecke
c34d729c7c 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()
2008-01-19 22:58:17 +01:00
Volker Lendecke
9996473290 Use SAFE_FREE instead of free 2008-01-19 19:31:02 +01:00
Corinna Vinschen
373a23d48f 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.
2008-01-19 19:30:16 +01:00
Volker Lendecke
64e54ea8f7 Fix error return in xattr_tdb_load_attrs 2008-01-19 18:51:20 +01:00
Volker Lendecke
197b08ad78 The remote storage op is gone
Alexander, I think this ok...
2008-01-19 16:19:28 +01:00
Volker Lendecke
aec357a456 Add get_ea_names_from_file to sanely list posix xattrs
Refactor get_ea_list_from_file to use that.
2008-01-19 16:07:56 +01:00
Volker Lendecke
0aa406bbba Make get_ea_value public 2008-01-19 15:50:05 +01:00
Volker Lendecke
6d0a727f26 Fix the build
... forgot to "git add" it
2008-01-19 13:39:24 +01:00
Kai Blin
76cf5a979b afs: Use talloc_stackframe() instead of talloc_init()
Thanks to vl for pointing this out.
2008-01-19 13:17:09 +01:00
Kai Blin
97768628f5 ntlm_auth: Get rid of statics in manage_squid_ntlmssp_request 2008-01-19 13:16:24 +01:00
Kai Blin
af43842622 ntlm_auth: Rewrite manage_client_ntlmssp_request without statics. 2008-01-19 13:16:24 +01:00
Kai Blin
2479a0c3ad nltm_auth: Use struct ntlm_auth_state in helper functions.
Now rewriting the helpers one after the other can start.
2008-01-19 13:16:24 +01:00
Kai Blin
f8243d1913 ntlm_auth: Prepare for a deeper rewrite of the helper functions 2008-01-19 13:16:24 +01:00
Kai Blin
4a475baf26 ntlm_auth: Dynamically allocate the read buffer.
This ports over my changes from Samba4
2008-01-19 13:16:23 +01:00
Volker Lendecke
924c4ede2a Link ndr_xattr.o with LIBNDR_GEN_OBJ
It will be used elsewhere (net xattr for example)
2008-01-19 12:54:46 +01:00