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
Jeremy Allison
63defd3e9d
Actually test vl's new code and make it work to fix the build farm :-).
...
Jeremy.
2008-01-18 18:39:27 -08:00
Volker Lendecke
e96cf1309e
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.
2008-01-18 17:37:04 -08:00
Kai Blin
ab0ee6e9a6
util_str: Don't return memory from talloc_tos(), use mem_ctx instead.
2008-01-19 02:20:16 +01:00
Jeremy Allison
3a1bcbfa7c
Fix error message for new allinfo command.
...
Jeremy.
2008-01-18 13:47:10 -08:00
Derrell Lipman
843e1694cf
Fix typo that disabled setting group id. Thanks, Henrik.
2008-01-18 14:22:49 -05:00
Stefan Metzmacher
b8a57a24c3
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
2008-01-18 17:02:13 +01:00
Jelmer Vernooij
174a45ec18
libreplace: Escape asterisk.
...
(cherry picked from commit df36c78549
)
2008-01-18 17:02:13 +01:00
Jelmer Vernooij
a0e663ff2c
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
)
2008-01-18 17:02:12 +01:00
Stefan Metzmacher
c11122afda
r26550: libreplace: fallback to __ss_family of struct sockaddr_storage
...
metze
(cherry picked from commit 11bdc9bed8
)
2008-01-18 17:02:12 +01:00
Stefan Metzmacher
ff8a001f0d
r26102: libreplace: remove system/printing.h as it only contains samba3 stuff
...
metze
(cherry picked from commit 1ecb4ec01b
)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
dbff70b2eb
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
)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
af3772e22f
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
)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
58932ca791
r25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE
...
metze
(cherry picked from commit 05b4619c5b
)
2008-01-18 17:02:10 +01:00
Stefan Metzmacher
3db37038b3
r25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h
...
metze
(cherry picked from commit a07c983fde
)
2008-01-18 17:02:10 +01:00
Michael Adam
f3901f179b
Use C99 structure initializers for netlogon_params_reg_ops.
...
Michael
2008-01-18 12:07:04 +01:00
Volker Lendecke
3fa0cf3fe5
Add the "allinfo" command to smbclient
...
Modeled after the Samba4 allinfo command
2008-01-18 11:08:17 +01:00
Michael Adam
e8a0524961
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
2008-01-18 09:40:57 +01:00
Michael Adam
d7a8d7ffbd
Fix typo in debug message.
...
Michael
2008-01-18 09:40:57 +01:00
Günther Deschner
645f2376d4
Fix the build w/o ADS.
...
Guenther
2008-01-18 08:50:33 +01:00
Günther Deschner
f297ea259d
Add header for NetGetJoinableOUs to libnetapi.
...
Guenther
2008-01-18 08:49:24 +01:00
Andrew Tridgell
8c89d60924
merged changes from v4-0-test
2008-01-18 15:46:15 +11:00
Günther Deschner
8858e403e1
Add NetGetJoinableOUs() to libnetapi (incl. example).
...
Guenther
2008-01-18 02:55:19 +01:00
Günther Deschner
4ca3392851
Cosmetics and error string reporting for libnetapi.
...
Guenther
2008-01-18 02:55:10 +01:00
Günther Deschner
d4c5b32322
Add some more debugging into netdomjoin-gui.
...
Guenther
2008-01-18 02:54:49 +01:00
Günther Deschner
30458116b3
Fix local hostname detection in netdomjoin-gui.
...
Guenther
2008-01-18 02:54:36 +01:00
Günther Deschner
96f645553a
Improve libnetapi_set_error_string().
...
Guenther
2008-01-18 02:54:29 +01:00
Michael Adam
7aec862ddc
Add and correct some WERROR codes.
...
Michael
2008-01-18 01:10:55 +01:00
Derrell Lipman
7135d2aea5
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
2008-01-17 11:50:41 -05:00
Derrell Lipman
41ad5c7700
stop bothering me about example programs not checked in
2008-01-17 11:50:22 -05:00
Derrell Lipman
67c415661f
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
2008-01-17 11:49:17 -05:00
Derrell Lipman
f5f46de404
Add a program to test repeated calls to smbc_getxattr().
2008-01-17 11:46:41 -05:00
Volker Lendecke
a3b36c3cb0
Fix two uninitialized variables in vfs_hpuxacl.c
...
Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208.
Volker
2008-01-17 17:22:31 +01:00
Günther Deschner
733e07a06c
Use new pidl-generated netlogon client calls in NetApi GetDcName().
...
Guenther
2008-01-17 16:54:46 +01:00
Günther Deschner
ad8f693332
Include auto-generated client headers for netlogon/samr.
...
Guenther
2008-01-17 16:54:46 +01:00
Günther Deschner
f7100156a7
Finally enable pidl generated SAMR & NETLOGON headers and clients.
...
Guenther
2008-01-17 16:54:46 +01:00