kai/samba.git
16 years agoSome reformatting in tcpip_params_fetch_values().
Michael Adam [Sun, 20 Jan 2008 00:21:45 +0000 (01:21 +0100)]
Some reformatting in tcpip_params_fetch_values().

Michael

16 years agoAdd a registry backend tcpip_params that replaces the former dynamic overlay.
Michael Adam [Sat, 19 Jan 2008 22:46:13 +0000 (23:46 +0100)]
Add a registry backend tcpip_params that replaces the former dynamic overlay.

Michael

16 years agoSome reformatting in prod_options_fetch_values().
Michael Adam [Sun, 20 Jan 2008 00:25:08 +0000 (01:25 +0100)]
Some reformatting in prod_options_fetch_values().

Michael

16 years agoAdd a registry backend prod_options that replaces the former dynamic overlay.
Michael Adam [Fri, 18 Jan 2008 15:15:43 +0000 (16:15 +0100)]
Add a registry backend prod_options that replaces the former dynamic overlay.

Michael

16 years agoSome reformatting in netlogon_params_fetch_values().
Michael Adam [Sun, 20 Jan 2008 00:30:38 +0000 (01:30 +0100)]
Some reformatting in netlogon_params_fetch_values().

Michael

16 years agoRename netlogon_params_fetch_reg_values() to netlogon_params_fetch_values().
Michael Adam [Sat, 19 Jan 2008 21:42:30 +0000 (22:42 +0100)]
Rename netlogon_params_fetch_reg_values() to netlogon_params_fetch_values().

Michael

16 years agoIn reg_backend_netlogon_params, delegate fetch_subkeys() to regdb.
Michael Adam [Sat, 19 Jan 2008 21:39:33 +0000 (22:39 +0100)]
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

16 years agoFix registering Registry backends in reghook_cache_add().
Michael Adam [Fri, 18 Jan 2008 16:51:57 +0000 (17:51 +0100)]
Fix registering Registry backends in reghook_cache_add().

This was broken in 331c0d6216e1a1607a49ed7eb4078e10138ec16a
(pstring removal).

Michael

16 years agoUse constant KEY_NETLOGON_PARAMS instead of literal key.
Michael Adam [Fri, 18 Jan 2008 15:13:01 +0000 (16:13 +0100)]
Use constant KEY_NETLOGON_PARAMS instead of literal key.

Michael

16 years agoVolker is right: why keep commented out migrated dynamic reg overlays around?...
Michael Adam [Fri, 18 Jan 2008 11:13:37 +0000 (12:13 +0100)]
Volker is right: why keep commented out migrated dynamic reg overlays around?...

Michael

16 years agoUse c99 struct initializers for REGISTRY_OPS in reg_shares.c
Michael Adam [Sat, 19 Jan 2008 22:09:38 +0000 (23:09 +0100)]
Use c99 struct initializers for REGISTRY_OPS in reg_shares.c

Michael

16 years agoUse c99 struct initializers for REGISTRY_OPS in reg_printing.c
Michael Adam [Sat, 19 Jan 2008 22:06:12 +0000 (23:06 +0100)]
Use c99 struct initializers for REGISTRY_OPS in reg_printing.c

Michael

16 years agoUse c99 struct initializers for REGISTRY_OPS in reg_smbconf.c.
Michael Adam [Sat, 19 Jan 2008 22:01:58 +0000 (23:01 +0100)]
Use c99 struct initializers for REGISTRY_OPS in reg_smbconf.c.

Michael

16 years agoSome systems do not have XATTR_ defined
Volker Lendecke [Sat, 19 Jan 2008 23:44:14 +0000 (00:44 +0100)]
Some systems do not have XATTR_ defined

16 years agovfs_streams_depot
Volker Lendecke [Sat, 19 Jan 2008 22:36:34 +0000 (23:36 +0100)]
vfs_streams_depot

Store streams in a file each. Not 100% finished, and not built by default.

16 years agovfs_streams_xattr module
Volker Lendecke [Sat, 19 Jan 2008 22:33:11 +0000 (23:33 +0100)]
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.

16 years agoAdd streams support
Volker Lendecke [Sat, 19 Jan 2008 22:25:36 +0000 (23:25 +0100)]
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.

16 years agoAdd "split_ntfs_stream_name()" together with a torture test
Volker Lendecke [Sat, 19 Jan 2008 22:10:09 +0000 (23:10 +0100)]
Add "split_ntfs_stream_name()" together with a torture test

16 years agoAdd an error mapping for ENOATTR
Volker Lendecke [Sat, 19 Jan 2008 21:44:55 +0000 (22:44 +0100)]
Add an error mapping for ENOATTR

16 years agoAdd the STREAMINFO vfs call
Volker Lendecke [Sat, 19 Jan 2008 19:41:15 +0000 (20:41 +0100)]
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()

16 years agoUse SAFE_FREE instead of free
Volker Lendecke [Sat, 19 Jan 2008 18:31:02 +0000 (19:31 +0100)]
Use SAFE_FREE instead of free

16 years agoTiny memory leak in lib/version.c
Corinna Vinschen [Sat, 19 Jan 2008 14:14:45 +0000 (15:14 +0100)]
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.

16 years agoFix error return in xattr_tdb_load_attrs
Volker Lendecke [Sat, 19 Jan 2008 14:44:48 +0000 (15:44 +0100)]
Fix error return in xattr_tdb_load_attrs

16 years agoThe remote storage op is gone
Volker Lendecke [Sat, 19 Jan 2008 15:19:08 +0000 (16:19 +0100)]
The remote storage op is gone

Alexander, I think this ok...

16 years agoAdd get_ea_names_from_file to sanely list posix xattrs
Volker Lendecke [Sat, 19 Jan 2008 15:07:56 +0000 (16:07 +0100)]
Add get_ea_names_from_file to sanely list posix xattrs

Refactor get_ea_list_from_file to use that.

16 years agoMake get_ea_value public
Volker Lendecke [Tue, 15 Jan 2008 12:22:39 +0000 (13:22 +0100)]
Make get_ea_value public

16 years agoFix the build
Volker Lendecke [Sat, 19 Jan 2008 12:37:40 +0000 (13:37 +0100)]
Fix the build

... forgot to "git add" it

16 years agoafs: Use talloc_stackframe() instead of talloc_init()
Kai Blin [Sat, 19 Jan 2008 11:27:31 +0000 (12:27 +0100)]
afs: Use talloc_stackframe() instead of talloc_init()

Thanks to vl for pointing this out.

16 years agontlm_auth: Get rid of statics in manage_squid_ntlmssp_request
Kai Blin [Sat, 19 Jan 2008 11:29:03 +0000 (12:29 +0100)]
ntlm_auth: Get rid of statics in manage_squid_ntlmssp_request

16 years agontlm_auth: Rewrite manage_client_ntlmssp_request without statics.
Kai Blin [Fri, 18 Jan 2008 13:40:47 +0000 (14:40 +0100)]
ntlm_auth: Rewrite manage_client_ntlmssp_request without statics.

16 years agonltm_auth: Use struct ntlm_auth_state in helper functions.
Kai Blin [Fri, 18 Jan 2008 09:37:16 +0000 (10:37 +0100)]
nltm_auth: Use struct ntlm_auth_state in helper functions.

Now rewriting the helpers one after the other can start.

16 years agontlm_auth: Prepare for a deeper rewrite of the helper functions
Kai Blin [Wed, 16 Jan 2008 13:45:22 +0000 (14:45 +0100)]
ntlm_auth: Prepare for a deeper rewrite of the helper functions

16 years agontlm_auth: Dynamically allocate the read buffer.
Kai Blin [Wed, 16 Jan 2008 08:52:26 +0000 (09:52 +0100)]
ntlm_auth: Dynamically allocate the read buffer.

This ports over my changes from Samba4

16 years agoLink ndr_xattr.o with LIBNDR_GEN_OBJ
Volker Lendecke [Sat, 19 Jan 2008 11:54:46 +0000 (12:54 +0100)]
Link ndr_xattr.o with LIBNDR_GEN_OBJ

It will be used elsewhere (net xattr for example)

16 years agoActually test vl's new code and make it work to fix the build farm :-).
Jeremy Allison [Sat, 19 Jan 2008 02:39:27 +0000 (18:39 -0800)]
Actually test vl's new code and make it work to fix the build farm :-).
Jeremy.

16 years agoAlways return nlink=1 for directories
Volker Lendecke [Thu, 17 Jan 2008 16:48:33 +0000 (17:48 +0100)]
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.

16 years agoutil_str: Don't return memory from talloc_tos(), use mem_ctx instead.
Kai Blin [Sat, 19 Jan 2008 01:12:35 +0000 (02:12 +0100)]
util_str: Don't return memory from talloc_tos(), use mem_ctx instead.

16 years agoFix error message for new allinfo command.
Jeremy Allison [Fri, 18 Jan 2008 21:47:10 +0000 (13:47 -0800)]
Fix error message for new allinfo command.
Jeremy.

16 years agoFix typo that disabled setting group id. Thanks, Henrik.
Derrell Lipman [Fri, 18 Jan 2008 19:22:49 +0000 (14:22 -0500)]
Fix typo that disabled setting group id.  Thanks, Henrik.

16 years agoRevert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"
Stefan Metzmacher [Tue, 15 Jan 2008 15:34:06 +0000 (16:34 +0100)]
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

16 years agolibreplace: Escape asterisk.
Jelmer Vernooij [Mon, 14 Jan 2008 21:24:07 +0000 (22:24 +0100)]
libreplace: Escape asterisk.
(cherry picked from commit df36c78549b40ee5e47d5cc79de2eb79f58c567a)

16 years agoTry to fix the build on Tru64; avoid single quotes because they get expanded by perl...
Jelmer Vernooij [Sun, 13 Jan 2008 03:46:11 +0000 (04:46 +0100)]
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)

16 years agor26550: libreplace: fallback to __ss_family of struct sockaddr_storage
Stefan Metzmacher [Thu, 20 Dec 2007 14:59:39 +0000 (15:59 +0100)]
r26550: libreplace: fallback to __ss_family of struct sockaddr_storage

metze
(cherry picked from commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)

16 years agor26102: libreplace: remove system/printing.h as it only contains samba3 stuff
Stefan Metzmacher [Thu, 22 Nov 2007 13:42:14 +0000 (14:42 +0100)]
r26102: libreplace: remove system/printing.h as it only contains samba3 stuff

metze
(cherry picked from commit 1ecb4ec01b0506c95a5f90a62040329e7a39ee93)

16 years agor25976: libreplace: not all platforms like _XOPEN_SOURCE=600
Stefan Metzmacher [Thu, 15 Nov 2007 15:40:32 +0000 (16:40 +0100)]
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)

16 years agor25974: libreplace: see what the build-farm says if we use _XOPEN_SOURCE=600
Stefan Metzmacher [Thu, 15 Nov 2007 14:43:14 +0000 (15:43 +0100)]
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)

16 years agor25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE
Stefan Metzmacher [Thu, 15 Nov 2007 13:55:48 +0000 (14:55 +0100)]
r25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE

metze
(cherry picked from commit 05b4619c5beff474488d1abe5e647acd94a3e20c)

16 years agor25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h
Stefan Metzmacher [Thu, 15 Nov 2007 13:46:47 +0000 (14:46 +0100)]
r25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h

metze
(cherry picked from commit a07c983fde52607806745914bb41039afb5618cc)

16 years agoUse C99 structure initializers for netlogon_params_reg_ops.
Michael Adam [Fri, 18 Jan 2008 11:07:02 +0000 (12:07 +0100)]
Use C99 structure initializers for netlogon_params_reg_ops.

Michael

16 years agoAdd the "allinfo" command to smbclient
Volker Lendecke [Fri, 18 Jan 2008 10:08:17 +0000 (11:08 +0100)]
Add the "allinfo" command to smbclient

Modeled after the Samba4 allinfo command

16 years agoAdd a registry backend netlogon_params that replaces the former dynamic overlay.
Michael Adam [Fri, 18 Jan 2008 08:40:42 +0000 (09:40 +0100)]
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

16 years agoFix typo in debug message.
Michael Adam [Fri, 18 Jan 2008 07:15:27 +0000 (08:15 +0100)]
Fix typo in  debug message.

Michael

16 years agoFix the build w/o ADS.
Günther Deschner [Fri, 18 Jan 2008 07:48:44 +0000 (08:48 +0100)]
Fix the build w/o ADS.

Guenther

16 years agoAdd header for NetGetJoinableOUs to libnetapi.
Günther Deschner [Fri, 18 Jan 2008 02:14:08 +0000 (03:14 +0100)]
Add header for NetGetJoinableOUs to libnetapi.

Guenther

16 years agomerged changes from v4-0-test
Andrew Tridgell [Fri, 18 Jan 2008 04:46:15 +0000 (15:46 +1100)]
merged changes from v4-0-test

16 years agoAdd NetGetJoinableOUs() to libnetapi (incl. example).
Günther Deschner [Fri, 18 Jan 2008 01:50:33 +0000 (02:50 +0100)]
Add NetGetJoinableOUs() to libnetapi (incl. example).

Guenther

16 years agoCosmetics and error string reporting for libnetapi.
Günther Deschner [Fri, 18 Jan 2008 01:38:35 +0000 (02:38 +0100)]
Cosmetics and error string reporting for libnetapi.

Guenther

16 years agoAdd some more debugging into netdomjoin-gui.
Günther Deschner [Fri, 18 Jan 2008 01:30:53 +0000 (02:30 +0100)]
Add some more debugging into netdomjoin-gui.

Guenther

16 years agoFix local hostname detection in netdomjoin-gui.
Günther Deschner [Fri, 18 Jan 2008 01:30:09 +0000 (02:30 +0100)]
Fix local hostname detection in netdomjoin-gui.

Guenther

16 years agoImprove libnetapi_set_error_string().
Günther Deschner [Fri, 18 Jan 2008 00:56:01 +0000 (01:56 +0100)]
Improve libnetapi_set_error_string().

Guenther

16 years agoAdd and correct some WERROR codes.
Michael Adam [Fri, 18 Jan 2008 00:04:40 +0000 (01:04 +0100)]
Add and correct some WERROR codes.

Michael

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Derrell Lipman [Thu, 17 Jan 2008 16:50:41 +0000 (11:50 -0500)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test

16 years agostop bothering me about example programs not checked in
Derrell Lipman [Thu, 17 Jan 2008 16:50:22 +0000 (11:50 -0500)]
stop bothering me about example programs not checked in

16 years agoFix bug 5185: repeated calls to smbc_getxattr() lose sid-name mapping
Derrell Lipman [Thu, 17 Jan 2008 16:49:17 +0000 (11:49 -0500)]
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

16 years agoAdd a program to test repeated calls to smbc_getxattr().
Derrell Lipman [Thu, 17 Jan 2008 16:46:41 +0000 (11:46 -0500)]
Add a program to test repeated calls to smbc_getxattr().

16 years agoFix two uninitialized variables in vfs_hpuxacl.c
Volker Lendecke [Thu, 17 Jan 2008 16:17:52 +0000 (17:17 +0100)]
Fix two uninitialized variables in vfs_hpuxacl.c

Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208.

Volker

16 years agoUse new pidl-generated netlogon client calls in NetApi GetDcName().
Günther Deschner [Thu, 17 Jan 2008 09:39:15 +0000 (10:39 +0100)]
Use new pidl-generated netlogon client calls in NetApi GetDcName().

Guenther

16 years agoInclude auto-generated client headers for netlogon/samr.
Günther Deschner [Thu, 17 Jan 2008 09:35:55 +0000 (10:35 +0100)]
Include auto-generated client headers for netlogon/samr.

Guenther

16 years agoFinally enable pidl generated SAMR & NETLOGON headers and clients.
Günther Deschner [Thu, 17 Jan 2008 09:24:34 +0000 (10:24 +0100)]
Finally enable pidl generated SAMR & NETLOGON headers and clients.

Guenther

16 years agoRe-run make idl to regnerated netlogon.
Günther Deschner [Thu, 17 Jan 2008 09:20:50 +0000 (10:20 +0100)]
Re-run make idl to regnerated netlogon.

Guenther

16 years agoAdd NETLOGON_GRACE_LOGON flag to netr_UserFlags.
Günther Deschner [Thu, 17 Jan 2008 09:19:15 +0000 (10:19 +0100)]
Add NETLOGON_GRACE_LOGON flag to netr_UserFlags.

Guenther

16 years agoRe-run make idl to generate SAMR output.
Günther Deschner [Thu, 17 Jan 2008 09:15:30 +0000 (10:15 +0100)]
Re-run make idl to generate SAMR output.

Guenther

16 years agoUse pidl generated data from misc.idl.
Günther Deschner [Thu, 17 Jan 2008 09:11:28 +0000 (10:11 +0100)]
Use pidl generated data from misc.idl.

Guenther

16 years agoRe-run make idl to regenerate netlogon output.
Günther Deschner [Thu, 17 Jan 2008 09:00:37 +0000 (10:00 +0100)]
Re-run make idl to regenerate netlogon output.

Guenther

16 years agoRemove dependency for nbt.idl (the NBT_SERVER_* flags) in netlogon.idl.
Günther Deschner [Thu, 17 Jan 2008 08:54:35 +0000 (09:54 +0100)]
Remove dependency for nbt.idl (the NBT_SERVER_* flags) in netlogon.idl.

Guenther

16 years agoRemove samba4 specifi struct server_id from misc.idl.
Günther Deschner [Thu, 17 Jan 2008 08:52:21 +0000 (09:52 +0100)]
Remove samba4 specifi struct server_id from misc.idl.

Guenther

16 years agoImport recent misc.idl from Samba4.
Günther Deschner [Thu, 17 Jan 2008 08:50:45 +0000 (09:50 +0100)]
Import recent misc.idl from Samba4.

Guenther

16 years agoAdd samba3 [out,ref] pointer massage to samr&netlogon idl.
Günther Deschner [Thu, 17 Jan 2008 08:49:10 +0000 (09:49 +0100)]
Add samba3 [out,ref] pointer massage to samr&netlogon idl.

Guenther

16 years agoImport recent netlogon and samr IDL from samba4.
Günther Deschner [Thu, 17 Jan 2008 08:41:58 +0000 (09:41 +0100)]
Import recent netlogon and samr IDL from samba4.

Guenther

16 years agoAdd a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.
Michael Adam [Thu, 17 Jan 2008 10:22:01 +0000 (11:22 +0100)]
Add a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.

Michael

16 years agoAdd my (C) to reg_api.c - Michael
Michael Adam [Thu, 17 Jan 2008 10:09:08 +0000 (11:09 +0100)]
Add my (C) to reg_api.c - Michael

16 years agoAdd a comment header comparing winreg.idl and reg_api.c.
Michael Adam [Thu, 17 Jan 2008 10:07:28 +0000 (11:07 +0100)]
Add a comment header comparing winreg.idl and reg_api.c.

Michael

16 years agoUse reg_[gs]etkeysecurity() instead of regkey_[gs]et_secdes().
Michael Adam [Thu, 17 Jan 2008 10:06:32 +0000 (11:06 +0100)]
Use reg_[gs]etkeysecurity() instead of regkey_[gs]et_secdes().

Rationale: Use reg_api instead of backend functions.

Michael

16 years agoAdd reg_api functions reg_getkeysecurity() and reg_setkeysecurity().
Michael Adam [Thu, 17 Jan 2008 10:02:15 +0000 (11:02 +0100)]
Add reg_api functions reg_getkeysecurity() and reg_setkeysecurity().

These are wrappers around the lower level functions regkey_get_secdesc()
and regkey_set_secdesc(). Next step towards hiding reg_frontend from
the surface.

Michael

16 years agoComment out unused reg_create_path() and reg_delete_path().
Michael Adam [Thu, 17 Jan 2008 09:30:56 +0000 (10:30 +0100)]
Comment out unused reg_create_path() and reg_delete_path().

These functions are unused. Comment them out for now.

Michael

16 years agoMove reg_create_path() and reg_delete_path() to reg_api.c
Michael Adam [Thu, 17 Jan 2008 09:19:12 +0000 (10:19 +0100)]
Move reg_create_path() and reg_delete_path() to reg_api.c

Michael

16 years agoConvert sync_eventlog_params() to use reg_api instead of reg_frontend.
Michael Adam [Thu, 17 Jan 2008 00:47:00 +0000 (01:47 +0100)]
Convert sync_eventlog_params() to use reg_api instead of reg_frontend.

This is a step towards untangling the registry.
All places should use reg_api.c, reg_frontend should actually more
appropriately be named reg_backend_dispatcher and hidden from callers.

:-)

Michael

16 years agoAdd some sectioning comments to reg_api.c
Michael Adam [Wed, 16 Jan 2008 23:57:53 +0000 (00:57 +0100)]
Add some sectioning comments to reg_api.c

Michael

16 years agoMake utility function reg_deletekey_recursive_internal() static.
Michael Adam [Wed, 16 Jan 2008 23:16:58 +0000 (00:16 +0100)]
Make utility function reg_deletekey_recursive_internal() static.

Michael

16 years agoUse the proper boolean constants in reg_frontend_hilvl.c
Michael Adam [Wed, 16 Jan 2008 22:19:38 +0000 (23:19 +0100)]
Use the proper boolean constants in reg_frontend_hilvl.c

Michael

16 years agoReformatting: Strip trailing white spaces from reg_frontent_hilvl.c.
Michael Adam [Wed, 16 Jan 2008 22:18:07 +0000 (23:18 +0100)]
Reformatting: Strip trailing white spaces from reg_frontent_hilvl.c.

Michael

16 years agoidl: Update IDL for eventlog, misc, netlogon and security from Samba 4.
Jelmer Vernooij [Thu, 17 Jan 2008 12:56:47 +0000 (13:56 +0100)]
idl: Update IDL for eventlog, misc, netlogon and security from Samba 4.

16 years agoidl: Remove use of [ref], which is the default.
Jelmer Vernooij [Thu, 17 Jan 2008 12:34:18 +0000 (13:34 +0100)]
idl: Remove use of [ref], which is the default.

16 years agoidl: Update initshutdown and echo IDL from Samba 4.
Jelmer Vernooij [Thu, 17 Jan 2008 12:16:27 +0000 (13:16 +0100)]
idl: Update initshutdown and echo IDL from Samba 4.

16 years agoidl: Update DFS IDL from Samba 4.
Jelmer Vernooij [Thu, 17 Jan 2008 12:00:12 +0000 (13:00 +0100)]
idl: Update DFS IDL from Samba 4.

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Derrell Lipman [Thu, 17 Jan 2008 14:29:52 +0000 (09:29 -0500)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test

16 years agoFix stat results to be consistent between smbc_stat and smbc_fstat.
Derrell Lipman [Thu, 17 Jan 2008 14:29:13 +0000 (09:29 -0500)]
Fix stat results to be consistent between smbc_stat and smbc_fstat.

We create a kludged inode based on the checksum of the path.  We therefore
need to use the same (full) path when calculating it in both smbc_stat() and
smbc_fstat().

If struct stat has an rdev field, set it to zero.

Derrell

16 years agoAdd some additional libsmbclient test programs.
Derrell Lipman [Thu, 17 Jan 2008 14:26:36 +0000 (09:26 -0500)]
Add some additional libsmbclient test programs.

testwrite: create or truncate a file and write to it.
teststat3: compare the results from smbc_stat() and smbc_fstat()

Derrell

16 years agoRemove is_remotestorage() call from VFS. We already have statvfs() there to handle...
Alexander Bokovoy [Thu, 17 Jan 2008 13:51:14 +0000 (16:51 +0300)]
Remove is_remotestorage() call from VFS. We already have statvfs() there to handle FS capabilities.

As discussed with Volker, it is better to calculate FS capabilities at
connection time. We already do this with help of VFS statvfs() call
which allows to fill-in system-specific attributes including FS
capabilities. So just re-use it if you want to represent additional
capabilities in your modules. The only caution is that you need to
call underlying statvfs() call to actually get system-specific
capabilities (and other fields) added. Then add module-specific ones.

16 years agoRework of VFS is_offline() function to only return boolean offline/online result...
Alexander Bokovoy [Thu, 17 Jan 2008 11:57:35 +0000 (14:57 +0300)]
Rework of VFS is_offline() function to only return boolean offline/online result for a file.

This makes sense as upper levels are only taking returned result of 0
(no error) into consideration when deciding whether to mark file
offline/online as returned from is_offline.

That means that we simply can move the decision down to VFS module and
clean up upper levels so that they always see only file status. If there
is an error when trying to identify file status, then VFS module could
decide what to return (offline or online) by itself -- after all, it
ought to have system-specific knowledge anyway.