1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

7415 Commits

Author SHA1 Message Date
Andrew Bartlett
207ee8aac4 Add a talloc varient of the data_blob functions.
Also change the structure so it has its own (optional) 'free' pointer - so we
don't free() a talloc'ed version.

also split out the data_blob_clear() functionaility.

Andrew Bartlett
-
Andrew Bartlett
323dd422bd Add a comment on how this error map was derrived.
This applies only to the NT->Dos map, I'm still trying to come up with a way to
do the reverse.
-
Gerald Carter
9844ec3399 forgot a few files -
Gerald Carter
f7d900873c merge from 2.2 and regenerate docs -
Andrew Bartlett
2c09907b53 One line fix to get smbmount working again.
This just turns of SPNGO becouse Win2k breaks if you attempt this and DOS
errors at the same time.

Andrew Bartlett
-
Jeremy Allison
32f4f3a45d Added DEBUG in set_share_mode to track down logic insanity.
Jeremy.
-
Andrew Bartlett
b2af4372b1 Add a touch of const -
Andrew Tridgell
faa1b222f1 print the timezone in the same format as 'date +%z' - much better for scripting -
Jeremy Allison
2db99fa49b Missed error return is can_rename fails.
Jeremy.
-
Jeremy Allison
e6b27f3d80 Re-wrote the guts of the rename_internals code to cope with a reported
bug (renaming name -> name was failing, on W2K it succeeds). Simplified
the common case, did a lot of work to ensure NT error codes are correctly
reported back to client.
Jeremy.
-
Gerald Carter
9e3b432c57 sync with 2.2 -
Jeremy Allison
6c51d90f13 Added WERROR for non local domain.
Jeremy.
-
Jeremy Allison
a0cdec3acc Fixed nasty cast of tdb_delete in traversals.
Jeremy.
-
John Terpstra
72bda5e821 Note: This does NOT work yet. More work is in progress - please wait before using. -
Jeremy Allison
8aee8211cd Don't use static memory, malloc it...
Jeremy.
-
Jeremy Allison
73cf9d04f6 Fix the fix.... (sigh).
Jeremy.
-
Jeremy Allison
fb1ab02553 Ensure modtime is set correctly on destination files in copy command.
Jeremy.
-
Jeremy Allison
b52c3219d6 Fixed embarressing 16k strack trashing bug :-(.
Jeremy.
-
Andrew Tridgell
f383e19e09 added nTSecurityDescriptor field to host acct dump -
Andrew Bartlett
a855dfb2e0 Update the NT_STATUS -> DOS error table.
This new table is rather different to the old one (see diff posted to the
list for a sorted list of differences) and needs a *lot* of testing.

It does however seem to line up much better with what NT is using, as
exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches
win2k where it didn't before.

I can't see any critical errors we now get wrong, and I know that the auth
errors are correct as per my on-the-wire observations.

This table was produced (and I hope to comment this better later) by
using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the
'name_to_ntstatus' auth module on the HEAD PDC.  This module returned
the username as the error, and the NT box was forced to give me a dos
error becouse thats all I negotiated on that connection.  Hence the map.

Andrew Bartlett
-
Martin Pool
269a7d3c9b Clarify doc for SAFE_FREE. -
Andrew Bartlett
8f343beae7 Make a couple more of the warnings also be C comments -
Andrew Bartlett
d879d2ffff A few changes to always output the erorr mapping even when the error was
'squashed' or the session setup succeeded.  (How the latter occurs I don't know).
-
Andrew Bartlett
d47e61eb46 Workaround some 'smarts' in Win2k.
Win2k kills off connections that have issued a negprot but havn't yet issued
a session setup when a second connection appears from the same host.
-
Andrew Bartlett
da9444d98f Re-add bail on failure. -
Martin Pool
9a473ecf96 Fix talloc msg registration -
Martin Pool
4721217494 Put a name on lp_talloc pool -
Martin Pool
4877501da9 Make talloctort call talloc_describe_all before exiting -
Martin Pool
86abefc172 Cope nicely with pools with no name. -
Andrew Tridgell
27143900e7 fixed ERRMAPEXTRACT torture to work with win2k -
Martin Pool
b46d874f47 smbd children should also register for POOL_USAGE -
Martin Pool
a9b9ae47e1 Cleanup format. -
Martin Pool
cd25d01e42 talloc accounting now includes number of chunks and bytes allocated. -
Martin Pool
7cb8e95f93 Send back talloc allocation information when POOL_USAGE is received. -
Martin Pool
53723e8748 Add talloc_asprintf_append, which grows an existing string buffer to
contain new print-formatted information.  (Also
talloc_vasprintf_append.)  Idea borrowed from glib.
-
Martin Pool
9b217dce7f smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty
boring so far.
-
Martin Pool
830a126a44 smbd should register to receive MSG_REQ_POOL_USAGE. Response should
be information about memory usage, but this is not done yet.
-
Tim Potter
b70f870cd9 Fixed crash bug in display_print_info_2() -
Martin Pool
cfa89169e0 Ignore dmalloc.log. -
Martin Pool
53dd8b4539 If we receive a message that is not handled then emit a gentle warning
to the log.
-
Martin Pool
6bd5b7ce8e debug output on receipt of message. -
Martin Pool
73743c2ec9 Oops, rerun autoconf after last change. -
Tim Potter
aae8cc6e45 Welcome to preprocessor hell. Had to put a #ifndef around SAFE_FREE to
stop smb_macros.h and tdb.h from fighting with each other.

I tried to rearrange the #include file order but that breaks other stuff.
Aargh!
-
Martin Pool
ee6d33a8db Add instructions on using dmalloc. -
Tim Potter
d1564fbf1f Fixed crash bug in display_print_info_1() -
Tim Potter
fe1fb6589a Initialise result on success in cli_spoolss_enum_printers() so we don't get
stuck in an infinite loop.
-
Tim Potter
6c950db05a The werror<->nt status code map has changed and has broken all the spoolss
commands in rpcclient.  Replacing ERROR_INSUFFICIENT_BUFFER with
NT_STATUS_BUFFER_TOO_SMALL fixes it.  Yay!

I always thought the caller (i.e cmd_spoolss.c) should take care of the
whole requested/needed buffer size thingy though...
-
Tim Potter
ab1bd916cf Removed unused #define -
Jeremy Allison
eb66074665 debug statement fixups.
Merge SAFE_FREE fix in tdb from 2.2, and IRIX fix.
Jeremy.
-
Gerald Carter
27ffce157a removed stuff I wasn't using -