summaryrefslogtreecommitdiff
path: root/source4/torture/util_smb.c
Commit message (Collapse)AuthorAgeFilesLines
* s4: popt: Global replace of cmdline_credentials -> ↵Jeremy Allison2017-05-111-1/+1
| | | | | | | | | | | popt_get_cmdline_credentials(). Add one use of popt_set_cmdline_credentials(). Fix 80 column limits when cmdline_credentials changes to popt_get_cmdline_credentials(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* dlist: remove unneeded type argument from DLIST_ADD_END()Michael Adam2016-02-061-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:torture: fix multi_smb_test child status tracking.Michael Adam2014-09-101-25/+62
| | | | | | | | | | | | | | | | | | | The original code in torture_start_procs() lost status of child status. So the affected test caseses (defer_open, ntdeny1, bench-torture, and also direct torture_start_proxy-user bench-nbench) were not always able to correctly detect and treat errors in the worker children. With this patch, torture_create_procs() correctly puts child result and reason into top level torture_result(), thereby in particular fixing remaining unexpected errors in the flapping deferopen test. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Sep 10 13:15:17 CEST 2014 on sn-devel-104
* Remove all uses of the NT_STATUS_NOT_OK_RETURN_AND_FREE macro from the codebase.Garming Sam2014-03-051-1/+4
| | | | | | | | | | Following the current coding guidelines, it is considered bad practice to return from within a macro and change control flow as they look like normal function calls. Change-Id: I421e169275fe323e2b019c6cc5d386289aec07f7 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:torture: add support for SMB_EXTENDED_SIGNATURES during SMBtconXStefan Metzmacher2012-08-041-1/+7
| | | | metze
* s4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flagStefan Metzmacher2012-08-021-1/+1
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 2 10:54:18 CEST 2012 on sn-devel-104
* s4:torture: remove unused shm_setup()Stefan Metzmacher2012-07-251-57/+0
| | | | metze
* s4:torture: replace shm_setup() with anonymous_shared_allocate()Stefan Metzmacher2012-07-251-2/+2
| | | | metze
* s4-torture: provide correct torture failures for failure to connectAndrew Bartlett2012-05-181-11/+9
|
* smbtorture: Do not leak child processes when exitingChristof Schmitt2012-02-021-0/+8
| | | | | | | | | | | When some child processes could not be created, smbtorture would exit and leave the successfully started child processes running. Add a loop to kill the existing child processes for this case. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Feb 2 01:35:27 CET 2012 on sn-devel-104
* libcli: move ioctl function field defs to smb_constantsDavid Disseldorp2011-10-191-1/+1
| | | | | | | Currently there are a lot of duplicate ioctl function field definitions between source3 and source4. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* source4/torture: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+1
|
* s3/s4: merge msleep and smb_msleepBjörn Jacke2010-09-161-2/+2
| | | | | the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-7/+7
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-1/+0
|
* s4-torture: allow host-only in unc lists in smbtortureAndrew Tridgell2010-02-091-2/+5
| | | | | | | | | | Allow UNC lists like this: 192.168.2.1 192.168.2.2 192.168.2.3 the share name will be taken from the command line
* s4 torture: Add SHARE_DELETE to create_directory_handleTim Prouty2009-12-151-1/+1
| | | | | Tests explicitly checking share modes should open the dir/file with the share mode they want to test.
* s4 torture: Convert create_complex_file to use BASIC_INFO instead of ↵Zachary Loafman2009-12-031-20/+26
| | | | | | deprecated command Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-1/+0
| | | | This reduces compile time somewhat.
* s4-torture: add a special check for administrators and privilegesAndrew Tridgell2009-10-171-0/+36
| | | | lsa privileges calls don't expand groups. darn.
* s4-smb: declare root_fid as a file handleAndrew Tridgell2009-10-151-1/+1
| | | | | | In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
* util_smb: For some (unknown) reason the previous patch changed the ↵Matthias Dieter Wallnöfer2009-09-131-0/+0
| | | | permissions - Reset them
* Port the Samba 4 shm_setup to QNX.Matt Kraai2009-09-131-0/+18
|
* s4:torture/util_smb: s/class/classnumStefan Metzmacher2009-02-021-3/+3
| | | | metze
* Fix warnings in make test code.Jeremy Allison2009-01-021-1/+4
| | | | Jeremy.
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-2/+2
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-021-1/+2
| | | | | | Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
* Fix the build.Jelmer Vernooij2008-11-021-0/+1
|
* Eliminate another instance of global_loadparm.Jelmer Vernooij2008-10-241-1/+2
|
* Fix number of arguments for file_load() functions.Jelmer Vernooij2008-10-121-1/+1
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* Cope with API changes.Jelmer Vernooij2008-09-301-1/+3
|
* Move subunit infrastructure code into lib/torture.Jelmer Vernooij2008-04-271-1/+0
| | | | (This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
* Fix problems with event context not being the parent.Simo Sorce2008-04-141-2/+1
| | | | (This used to be commit 957c4d893acf9e6db06a3fc3a4687ab6bb238635)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-0/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* libcli/raw: make it possible to not send CAP_LEVEL_II_OPLOCKSStefan Metzmacher2008-03-061-3/+3
| | | | | | | | But the keep the default to always send it when the server supports it too. metze (This used to be commit 33caaef2e46557525a8ffb79d6dd0db46a079529)
* torture: Merge util.c into util_smb.cJelmer Vernooij2008-02-091-0/+39
| | | | (This used to be commit d19d27f406c0377d98c9fe9da9284dcebd373bb7)
* r26672: Janitorial: Remove uses of global_loadparm.Jelmer Vernooij2008-01-051-1/+1
| | | | (This used to be commit 18cd08623eaad7d2cd63b82ea5275d4dfd21cf00)
* r26654: libcli/smb_composite: Rather than specifying each of the gazillion ↵Jelmer Vernooij2008-01-031-1/+5
| | | | | | options for SMB individually, just specify the smbcli_options struct. (This used to be commit 8a97886e24a4b969aa91409c06f423b71a45f6eb)
* r26644: Janitorial: Pass resolve_context explicitly to various SMB ↵Jelmer Vernooij2008-01-021-1/+4
| | | | | | functions, should help fix the build for OpenChange. (This used to be commit 385ffe4f4cc9a21a760c0f00410f56e2592fd507)
* r26409: Pass smb ports along.Jelmer Vernooij2007-12-211-0/+1
| | | | (This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)
* r26271: Remove some more uses of global_loadparm.Jelmer Vernooij2007-12-211-2/+3
| | | | (This used to be commit e9875fcd56de0748ed78d7e3c9cdb4919cd96d3c)
* r26249: Remove a couple more uses of global_loadparm.Jelmer Vernooij2007-12-211-15/+16
| | | | (This used to be commit 80a61200508a00d5b16a3e748ce92d54b9fefcd2)
* r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij2007-12-211-1/+1
| | | | | | uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-26/+26
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25430: Add the loadparm context to all parametric options.Jelmer Vernooij2007-10-101-5/+5
| | | | (This used to be commit fd697d77c9fe67a00939a1f04b35c451316fff58)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25392: Add loadparm context as argument in a couple more places.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit c62f51cc28a37959128e78a1f34cfd4c6d3ba069)
* r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij2007-10-101-7/+7
| | | | | | number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)