1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

6053 Commits

Author SHA1 Message Date
Tim Potter
02fe0e18df Distinguish between NT informational and error codes. -
Andrew Bartlett
bd3010263b Add a new option to disable our paranoid server check.
Defaults to ON, ie checking
-
Volker Lendecke
a1e97aafe5 Fixed a little typo.
Volker
-
Volker Lendecke
1c94fa8064 This is Jeremy pretending to be Volker, 'cos the
link from Seattle is having problems.
I've added 3 things here to work on the fcntl spin
problem.
1). Check *all* tdb return codes... :-).
2). If we're asking ourselves to break an oplock, and we can't
find a fsp pointer that matches the entry, this is a *logic bug*
and we should abort and panic so someone with gdb can pick up
the pieces.
3). After we've broken an oplock, ensure that the entry itself
has been removed, and if not remove it ourselves. This should
not be neccessary in a correctly working environmen,t, but will
provide an added layer of robustness in error situations.
4). I hate german keyboards :-) :-).
Jeremy.
-
Jeremy Allison
41066208ad Ensure we are very explicit about what we're comparing when
we're comparing structures (ie. don't just do a memcmp). I
don't think this will fix the fcntl spin issue, but it's a
"just in case" change.
Jeremy.
-
Andrew Bartlett
afece03d02 Add comment to clarify why we call this twice. -
Andrew Tridgell
a25911d58c two fixes for NT clients -> share level Samba server -
Andrew Tridgell
b6c78d4c6f allow for the NULL in make_nmb_name() -
Andrew Tridgell
1c2618df45 added -b option -
Andrew Tridgell
3eba9606f7 a bunch of fixes from the sflight to seattle
in particular:
 - fixed NT status code for a bunch of ops
 - fixed handling of protocol levels in ms_fnmatch
-
Jeremy Allison
82153dde95 Realloc fix.
Jeremy.
-
Jeremy Allison
6b90263292 Realloc fixes.
Jeremy.
-
Jeremy Allison
e4ef9e332f Realloc fixes.
Jeremy.
-
Jeremy Allison
560ae7615e Realloc fixes.
Jeremy.
-
Jeremy Allison
94128f9f37 More Realloc fixes.
Jeremy.
-
Jeremy Allison
9cabc3fd63 Realloc fix.
Jeremy.
-
Anton Blanchard
a58b89d339 Add missing gcc memory barriers, this bug showed up when doing a
heavy netbench run. :)

Rework ppc spinlocks to be faster.
-
Jeremy Allison
b4fa49fe13 More Realloc fixes.
Jeremy.
-
Jeremy Allison
381c02e638 More Realloc fixes.
Jeremy.
-
Jeremy Allison
31804cb7a8 Use tparam not tdata when reallocing params to make clearer.
Jeremy.
-
Jean-François Micouleau
5e9a36bd9c more useful debug messages and check if the size are non null.
that fix the notification backend channel for spoolss.

	J.F.
-
Andrew Bartlett
8c3cf2db95 OK, so not freeing these was a mistake. I'll try to be less exuberent next
time :-)
-
Andrew Bartlett
ba76564c2a Move the claim_connection stuff till a little later in the process.
(You don't have to clean up somthing you haven't done yet...)
-
Andrew Bartlett
6fd8eb08c1 Move admin user check into a helper function.
Formatting fixes.
-
Andrew Bartlett
7dc716f174 Move read only check into a helper funcion. Ensure conn->service is set
before we use it to find a share's details.
-
Andrew Bartlett
dc635bde22 Restore a debug I think I dropped earlier -
Andrew Bartlett
15c87e404f smbd/auth_server: Doco, we want to use cli_nt_error here soon
smbd/password.c: We don't use globals here anymore

smbd/reply.c: Tidyness, global_myworkgroup must die!

smbd/service.c:  Move some of the make_connection code into a helper
                 function.
-
Andrew Bartlett
3d91c11942 Style cleanup for the last vuid change.
Style, doco and DEBUG() fixes for auth_smbpasswd.c
(In particular for the account control call).

Andrew Bartlett
-
Andrew Bartlett
204da7ba96 One less getpwnam() call...
Andrew Bartlett
-
Andrew Tridgell
6b43e4a15d removed unused file -
Andrew Tridgell
c452eb0fbb removed unused file -
Jeremy Allison
800e46ea7e Added Jim McDonough's Win9x take ownership fix.
Jeremy.
-
Gerald Carter
7049217eb4 merge from 2.2 -
Jeremy Allison
befbfea210 Add printing of errno when POSIX lock requests fail.
Jeremy.
-
Tim Potter
6c0dab8502 Moved across definition of dos error types from smb.h to doserr.h -
Tim Potter
577f6065f6 Converted to new error API.
Now that we support NT errors from the client, appropriate values will need
to be filled in for the various invocations of check_error() within the
torture code.
-
Tim Potter
45254ae23b Fixed typo in debug message. -
Tim Potter
73addddb2e Fixed up 'orrible formatting. -
Tim Potter
a7863f0f03 Fixed crash bug when attempting to list contents of non-existent
directory.
-
Simo Sorce
fa8e55b8b4 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
-
Andrew Bartlett
895d1cd317 Kill of idra's extra become_root()/unbecome_root() now I have fixed the actual
problem.

Andrew Bartlett
-
Andrew Bartlett
ea1c547ac8 This patch does a number of things, mostly smaller than they look :-)
In particuar, it moves the domain_client_validate stuff out of
auth_domain.c to somwhere where they (I hope) they can be shared
with winbind better.  (This may need some work)

The main purpose of this patch was however to improve some of the
internal documentation and to correctly place become_root()/unbecome_root()
calls within the code.

Finally this patch moves some more of auth.c into other files, auth_unix.c
in this case.

Andrew Bartlett
-
Simo Sorce
a2a4d4e628 it was half committed last time,
thanks to Hasch@t-online.de (Juergen Hasch) for spotting that.
-
Simo Sorce
f25a5dab60 Without this become_root()/unbecome_root() pair I was not able to login
when samba acting as a PDC.
I also removed a pdb_free_sam(sampass), because it sampass was never
initialized before...

Please abartlet can you check this patch is ok?
I feel like this was a bad check-in
-
Jeremy Allison
8c5e5f8c84 Added Mike Davidsons Tru64 ACL patch.
Jeremy.
-
Jeremy Allison
a3781ad38f Merge in the NT drivers changes from 2.2.
Jeremy.
-
Simo Sorce
fd54412ce9 - avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)
- ported two rpc back from TNG (WINREG: shutdown and abort shutdown)
- some optimizations and changed some DEBUG statement in loadparm.c
- changed rpcclient a bit moved from non reentrant next_token_nr to next_token
- in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0
-
Tim Potter
e98f948123 Debug cleanups. -
Tim Potter
e9ceb17d77 Had the test for cli_is_error() reversed. You idiot Stimpy! -
Tim Potter
9c57e45d44 Fixes for new client error api. -