1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

5174 Commits

Author SHA1 Message Date
Jeremy Allison
5f0b9d0830 Realloc fix.
Jeremy.
(This used to be commit 82153dde95)
2001-08-19 18:25:14 +00:00
Jeremy Allison
a680611c0b Realloc fixes.
Jeremy.
(This used to be commit 6b90263292)
2001-08-19 18:19:04 +00:00
Jeremy Allison
4f14ec2dd1 Realloc fixes.
Jeremy.
(This used to be commit e4ef9e332f)
2001-08-19 18:01:08 +00:00
Jeremy Allison
e077bcada9 Realloc fixes.
Jeremy.
(This used to be commit 560ae7615e)
2001-08-19 17:54:10 +00:00
Jeremy Allison
e47cac8db4 More Realloc fixes.
Jeremy.
(This used to be commit 94128f9f37)
2001-08-19 17:42:34 +00:00
Jeremy Allison
9326b82ffa Realloc fix.
Jeremy.
(This used to be commit 9cabc3fd63)
2001-08-19 17:34:37 +00:00
Anton Blanchard
66673eeeb4 Add missing gcc memory barriers, this bug showed up when doing a
heavy netbench run. :)

Rework ppc spinlocks to be faster.
(This used to be commit a58b89d339)
2001-08-19 13:45:38 +00:00
Jeremy Allison
ca66a07781 More Realloc fixes.
Jeremy.
(This used to be commit b4fa49fe13)
2001-08-18 19:57:48 +00:00
Jeremy Allison
ec70b76395 More Realloc fixes.
Jeremy.
(This used to be commit 381c02e638)
2001-08-18 19:43:28 +00:00
Jeremy Allison
556c8f3fbf Use tparam not tdata when reallocing params to make clearer.
Jeremy.
(This used to be commit 31804cb7a8)
2001-08-17 18:16:42 +00:00
Jean-François Micouleau
ccb927b17c more useful debug messages and check if the size are non null.
that fix the notification backend channel for spoolss.

	J.F.
(This used to be commit 5e9a36bd9c)
2001-08-17 17:07:40 +00:00
Andrew Bartlett
8db28234c5 OK, so not freeing these was a mistake. I'll try to be less exuberent next
time :-)
(This used to be commit 8c3cf2db95)
2001-08-17 08:57:58 +00:00
Andrew Bartlett
9ed5f60a5b 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...)
(This used to be commit ba76564c2a)
2001-08-17 08:44:04 +00:00
Andrew Bartlett
327fda27ed Move admin user check into a helper function.
Formatting fixes.
(This used to be commit 6fd8eb08c1)
2001-08-17 08:12:33 +00:00
Andrew Bartlett
67967749a2 Move read only check into a helper funcion. Ensure conn->service is set
before we use it to find a share's details.
(This used to be commit 7dc716f174)
2001-08-17 07:48:25 +00:00
Andrew Bartlett
7c332851b0 Restore a debug I think I dropped earlier
(This used to be commit dc635bde22)
2001-08-17 07:47:10 +00:00
Andrew Bartlett
578a39d44f 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.
(This used to be commit 15c87e404f)
2001-08-17 07:03:27 +00:00
Andrew Bartlett
a0171765ff 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
(This used to be commit 3d91c11942)
2001-08-17 06:06:56 +00:00
Andrew Bartlett
90d2460cf0 One less getpwnam() call...
Andrew Bartlett
(This used to be commit 204da7ba96)
2001-08-17 05:38:44 +00:00
Andrew Tridgell
8cceea0f3f removed unused file
(This used to be commit 6b43e4a15d)
2001-08-16 07:22:47 +00:00
Andrew Tridgell
de261db422 removed unused file
(This used to be commit c452eb0fbb)
2001-08-16 07:15:57 +00:00
Jeremy Allison
e08ca02631 Added Jim McDonough's Win9x take ownership fix.
Jeremy.
(This used to be commit 800e46ea7e)
2001-08-13 23:19:16 +00:00
Gerald Carter
26ceb74063 merge from 2.2
(This used to be commit 7049217eb4)
2001-08-13 21:30:27 +00:00
Jeremy Allison
e430190a66 Add printing of errno when POSIX lock requests fail.
Jeremy.
(This used to be commit befbfea210)
2001-08-13 17:58:54 +00:00
Tim Potter
432dbf7e24 Moved across definition of dos error types from smb.h to doserr.h
(This used to be commit 6c0dab8502)
2001-08-13 05:26:33 +00:00
Tim Potter
e7630562c9 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.
(This used to be commit 577f6065f6)
2001-08-13 04:08:42 +00:00
Tim Potter
ce5233ffb3 Fixed typo in debug message.
(This used to be commit 45254ae23b)
2001-08-13 02:39:13 +00:00
Tim Potter
6b60c28acc Fixed up 'orrible formatting.
(This used to be commit 73addddb2e)
2001-08-13 02:33:24 +00:00
Tim Potter
4da562d4dc Fixed crash bug when attempting to list contents of non-existent
directory.
(This used to be commit a7863f0f03)
2001-08-12 23:53:26 +00:00
Simo Sorce
2e783a4707 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.
(This used to be commit fa8e55b8b4)
2001-08-12 17:30:01 +00:00
Andrew Bartlett
ddec830658 Kill of idra's extra become_root()/unbecome_root() now I have fixed the actual
problem.

Andrew Bartlett
(This used to be commit 895d1cd317)
2001-08-12 12:23:50 +00:00
Andrew Bartlett
6ad80352dd 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
(This used to be commit ea1c547ac8)
2001-08-12 11:19:57 +00:00
Simo Sorce
9644bf74bd it was half committed last time,
thanks to Hasch@t-online.de (Juergen Hasch) for spotting that.
(This used to be commit a2a4d4e628)
2001-08-12 09:18:31 +00:00
Simo Sorce
8d5916d5fa 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
(This used to be commit f25a5dab60)
2001-08-11 16:34:11 +00:00
Jeremy Allison
16afd6d2bc Added Mike Davidsons Tru64 ACL patch.
Jeremy.
(This used to be commit 8c5e5f8c84)
2001-08-10 20:48:25 +00:00
Jeremy Allison
4b2016305b Merge in the NT drivers changes from 2.2.
Jeremy.
(This used to be commit a3781ad38f)
2001-08-10 19:38:53 +00:00
Simo Sorce
acc149c427 - 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
(This used to be commit fd54412ce9)
2001-08-10 09:52:10 +00:00
Tim Potter
5c47841335 Debug cleanups.
(This used to be commit e98f948123)
2001-08-10 07:41:18 +00:00
Tim Potter
ea43baeeb0 Had the test for cli_is_error() reversed. You idiot Stimpy!
(This used to be commit e9ceb17d77)
2001-08-10 06:46:11 +00:00
Tim Potter
afbca61a28 Fixes for new client error api.
(This used to be commit 9c57e45d44)
2001-08-10 06:16:05 +00:00
Tim Potter
5836e1f7fe Use new client error api.
(This used to be commit b196a52483)
2001-08-10 06:11:31 +00:00
Tim Potter
62f7f6a022 Use the new client error api.
(This used to be commit 688da3c41d)
2001-08-10 06:01:11 +00:00
Tim Potter
2ccfea3de7 A rewrite of the error handling in the libsmb client code. I've separated
out the error handling into a bunch of separate functions rather than all
being handled in one big function.

Fetch error codes from the last received packet:

    void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num);
    uint32 cli_nt_error(struct cli_state *);

Convert errors to UNIX errno values:

    int cli_errno_from_dos(uint8 eclass, uint32 num);
    int cli_errno_from_nt(uint32 status);
    int cli_errno(struct cli_state *cli);

Detect different kinds of errors:

    BOOL cli_is_dos_error(struct cli_state *cli);
    BOOL cli_is_nt_error(struct cli_state *cli);
    BOOL cli_is_error(struct cli_state *cli);

This also means we now support CAP_STATUS32 as we can decode and understand
NT errors instead of just DOS errors.  Yay!

Ported a whole bunch of files in libsmb to use this new API instead of the
just the DOS error.
(This used to be commit 6dbdb0d813)
2001-08-10 06:00:33 +00:00
Tim Potter
4bbd1ddb27 More constant conversions.
(This used to be commit 00703d306f)
2001-08-10 05:50:47 +00:00
Tim Potter
af0af3d42a Removed nt_error field from cli_state as it was not used anywhere.
(This used to be commit 589aaa5fb1)
2001-08-10 05:50:20 +00:00
Tim Potter
047a7c88d7 Replaced the duplicate DOS constants with appropriate ones from doserr.h to
emphasise the fact that the spoolss pipe returns DOS error codes instead of
32-bit nt status codes.
(This used to be commit 5f5ed41ee8)
2001-08-10 05:41:53 +00:00
Tim Potter
7d9358cf58 Moved dos error codes from smb.h into new file doserr.h
(This used to be commit 1bd8b6f797)
2001-08-10 05:37:52 +00:00
Tim Potter
c4495240f6 Changed the order of arguments in make_oem_passwd_hash(). All the other
encryption functions have outputs as the last arguments.
(This used to be commit fb60798a77)
2001-08-10 04:59:05 +00:00
Gerald Carter
de5f42c9d9 merge from 2.2
(This used to be commit 6ab0e949d1)
2001-08-10 04:27:26 +00:00
Jeremy Allison
fc0fe941d8 Fixed typo in patch.
Jeremy.
(This used to be commit 36e01dcdbd)
2001-08-10 03:17:58 +00:00