Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-09-14 | tdb2: cleanup oob handling. | Rusty Russell | 3 | -25/+30 | |
The tdb_oob() function can fail due to errors, as well as because the length asked for is greater than the size of the file. Clean that up: (1) If probe is true, only fail if there's an error, not if the length is too great. (2) Exit tdb_open() if it tdb_oob() probe fails; this helps cut down test time for failtest. (3) Don't set probe to true in tdb_direct() fail; a minor issue, but it means we log failure. (Imported from CCAN commit 77658070a3e4f712b94d659b2e399031ce3394c8) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-09-14 | tdb2: fix tdb_lock offset. | Rusty Russell | 1 | -1/+1 | |
It can be 64 bits, for huge databases. (Imported from CCAN commit 736c033322079baf754261d82b6a83de53b2bb4e) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-09-14 | tdb2: fix internal tdb_write_convert() error handling in tdb_open() | Rusty Russell | 1 | -4/+5 | |
As noted, failtest was taking a long time, because a failure injected here was not detected. (Imported from CCAN commit 51f592dfcda4d58d6b9d8134b6e1aff791dc40f2) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-09-14 | tdb2: Fix to always use 64-bit offset definition | Rusty Russell | 7 | -11/+627 | |
We use off_t in the tdb2 interface (for tdb_attribute_flock); we need to make sure that all callers agree on the size. This also causes a problem in the tests: it's not enough to include config.h first, we need the _FILE_OFFSET_BITS define from private.h. Otherwise, we can disagree about the definitions of F_SETLK, F_SETLKW and off_t, causing strange problems. (Imported from CCAN commit baa17ee2d5e01a32030f19e566007417d72b4b6e) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-09-14 | ccan: configure check for HAVE_BUILTIN_CHOOSE_EXPR | Rusty Russell | 2 | -0/+18 | |
We weren't testing for this, and without it, typesafe_cb just casts its function argument. This is why I didn't get a warning when one of my patches amended a function incorrectly. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-09-13 | s3:smb2cli: split cli->smb2.gss_blob from cli->secblob | Stefan Metzmacher | 2 | -1/+2 | |
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 13 23:34:13 CEST 2011 on sn-devel-104 | |||||
2011-09-13 | s3:net_time: make use of cli_state_server_time_zone() and ↵ | Stefan Metzmacher | 1 | -2/+2 | |
cli_state_server_time() metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_server_time_zone() | Stefan Metzmacher | 4 | -17/+17 | |
metze | |||||
2011-09-13 | s3:libsmb: add cli_state_server_time() | Stefan Metzmacher | 2 | -0/+6 | |
metze | |||||
2011-09-13 | s3:libsmb: add cli_state_server_time_zone() | Stefan Metzmacher | 2 | -0/+6 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_server_session_key() | Stefan Metzmacher | 1 | -4/+4 | |
metze | |||||
2011-09-13 | s3:libsmb: add cli_state_server_session_key() | Stefan Metzmacher | 2 | -0/+6 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_security_mode() | Stefan Metzmacher | 1 | -9/+12 | |
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 13 19:45:01 CEST 2011 on sn-devel-104 | |||||
2011-09-13 | s3:winbindd_cm: make use of cli_state_security_mode() | Stefan Metzmacher | 1 | -1/+3 | |
metze | |||||
2011-09-13 | s3:auth_server: make use of cli_state_security_mode() | Stefan Metzmacher | 1 | -3/+9 | |
metze | |||||
2011-09-13 | s3:libsmb: add cli_state_security_mode() | Stefan Metzmacher | 2 | -0/+6 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_max_requests() in cli_push_send() | Stefan Metzmacher | 1 | -2/+5 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_max_requests() in cli_pull_send() | Stefan Metzmacher | 1 | -1/+4 | |
metze | |||||
2011-09-13 | s3:libsmb: add cli_state_max_requests() | Stefan Metzmacher | 2 | -0/+6 | |
metze | |||||
2011-09-13 | s3:libsmb: make sure cli->max_mux is valid in the return of the server | Stefan Metzmacher | 1 | -0/+6 | |
metze | |||||
2011-09-13 | s3:libsmb: set the MID to 0 in cli_setup_packet_buf() | Stefan Metzmacher | 1 | -1/+1 | |
It's allocated when sending the request. metze | |||||
2011-09-13 | s3:libsmb: check that max_xmit is not less than 1024 | Stefan Metzmacher | 1 | -0/+5 | |
metze | |||||
2011-09-13 | s3:libsmb: better expect a max_xmit of 1024 instead of 0xFFFF for the CORE ↵ | Stefan Metzmacher | 1 | -0/+1 | |
protocol metze | |||||
2011-09-13 | s3:torture: there's no need to alter cli->max_xmit in order to test large writes | Stefan Metzmacher | 1 | -7/+3 | |
metze | |||||
2011-09-13 | s3:libsmb: don't mix smb2 share capabilities with smb1 capabilities | Stefan Metzmacher | 2 | -1/+2 | |
metze | |||||
2011-09-13 | s3:libsmb: the smb2 server capabilities from the session setup are 32-bit | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2011-09-13 | ldb:pyldb.c - "py_ldb_rename" remove superflous "ldb" pointer | Matthias Dieter Wallnöfer | 1 | -4/+2 | |
Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Sep 13 18:11:18 CEST 2011 on sn-devel-104 | |||||
2011-09-13 | s4-s3-upgrade Improve samba-tool domain samba3upgrade behaviour | Andrew Bartlett | 3 | -17/+38 | |
The --realm argument is again optional (the previous code would take the default from the default smb.conf, not the one specified) and --targetdir is now a named argument much like it is to provision. We now test the --testparm option to ensure it behaves the way we expect. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 13 16:30:31 CEST 2011 on sn-devel-104 | |||||
2011-09-13 | s4:upgrade_from_s3 - restore "get_testparm_var" method | Matthias Dieter Wallnöfer | 1 | -1/+4 | |
This has accidentally been removed by commit 8268c2d4e231b05b439bc70331b75342b35daa4e. Signed-off-by: Andrew Bartlett <abartlet@samba.org> | |||||
2011-09-13 | s3:torture: use CLI_BUFFER_SIZE instead of cli->max_xmit | Stefan Metzmacher | 1 | -1/+1 | |
The max_data parameter of trans2/nttrans calls are not bound to cli->max_xmit. Even with cli->max_xmit, which means the max size of the whole SMB pdu, we would get fragmented trans2/nttrans replies. That's why we can also use our maximum, which is CLI_BUFFER_SIZE. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 13 14:52:35 CEST 2011 on sn-devel-104 | |||||
2011-09-13 | s3:libsmb: make use of cli_state_available_size() in cli_smbwrite() | Stefan Metzmacher | 1 | -1/+2 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_available_size() in cli_write_max_bufsize() | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_available_size() in cli_read_max_bufsize() | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_available_size() in cli_list_old_send() | Stefan Metzmacher | 1 | -1/+3 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_available_size() in cli_sesssetup_blob_send() | Stefan Metzmacher | 1 | -6/+8 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_available_size() in cli_trans_format() | Stefan Metzmacher | 1 | -4/+5 | |
metze | |||||
2011-09-13 | s3:libsmb: add cli_state_available_size() | Stefan Metzmacher | 2 | -0/+14 | |
metze | |||||
2011-09-13 | s3:clitar: remove unused/not existing extern variables | Stefan Metzmacher | 1 | -3/+0 | |
metze | |||||
2011-09-13 | s3: Fix Coverity ID 2613 -- UNINIT | Volker Lendecke | 1 | -0/+1 | |
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Sep 13 12:39:10 CEST 2011 on sn-devel-104 | |||||
2011-09-13 | s3: Fix Coverity ID 2614 -- UNINIT | Volker Lendecke | 1 | -0/+1 | |
2011-09-13 | s3: Make saf_join_key() use talloc | Volker Lendecke | 1 | -12/+20 | |
2011-09-13 | s3: Make saf_key() use talloc | Volker Lendecke | 1 | -12/+20 | |
2011-09-13 | s3: Disentangle resolve_name() a bit | Volker Lendecke | 1 | -3/+5 | |
2011-09-13 | s3: Remove a reference to smbd_server_conn | Volker Lendecke | 1 | -1/+1 | |
2011-09-13 | s3: Remove a reference to smbd_server_conn | Volker Lendecke | 1 | -1/+1 | |
2011-09-13 | s3: Remove a reference to smbd_server_conn | Volker Lendecke | 1 | -2/+3 | |
2011-09-13 | s3: Remove a reference to smbd_server_conn | Volker Lendecke | 1 | -1/+2 | |
2011-09-13 | s3: Remove a reference to smbd_server_conn | Volker Lendecke | 1 | -2/+10 | |
2011-09-13 | s3: Fix some nonempty blank lines | Volker Lendecke | 3 | -7/+7 | |
2011-09-13 | s3-selftest use a more portable shell syntax | Andrew Bartlett | 1 | -10/+10 | |
"$10" evaulates to $1 and 0, not the 10th argument. Thanks to Amitay for pointing this out! Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 13 09:34:49 CEST 2011 on sn-devel-104 |