summaryrefslogtreecommitdiff
path: root/source4/torture/masktest.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture: Fix comparison between pointer and zero character constantAndreas Schneider2017-06-011-1/+1
| | | | | | | | | | Fixes building with GCC 7.1 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jun 1 23:42:58 CEST 2017 on sn-devel-144
* s4: popt: Global replace of cmdline_credentials -> ↵Jeremy Allison2017-05-111-2/+4
| | | | | | | | | | | 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>
* s4: torture: Use a named TALLOC_CTX in masktest instead of ↵Jeremy Allison2017-05-051-4/+9
| | | | | | | | | talloc_autofree_context(). Move all talloc_free()'s back to main from the function call. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* lib: Fix "is_case_sensitive" in "ms_fnmatch_protocol"' callersVolker Lendecke2017-02-151-1/+1
| | | | | | | | | | | | | In the optimization in f969be54417 I got the boolean flag "is_case_sensitive" wrong. The behaviour was case *insensitive*, so all the flags should have been "false", keeping the old behaviour. While there, simplify "mask_match" in source4 client.c Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Feb 15 11:40:32 CET 2017 on sn-devel-144
* lib: Add "is_case_sensitive" to ms_fnmatch_protocolVolker Lendecke2017-01-221-1/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s4:torture: avoid argv related const warningsStefan Metzmacher2014-04-021-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett2011-06-061-1/+1
| | | | | | | | Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
* lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbolAndrew Bartlett2011-05-061-1/+1
| | | | | | | This verison of the function takes a protcol as argument to determine matching rules. Andrew Bartlett
* Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.Jeremy Allison2011-05-041-2/+2
|
* s4: fix arguments to safe_strcpy()Andrew Bartlett2011-05-031-2/+2
| | | | | | Found by the s3-derivied safe_strcpy() macro. Andrew Bartlett
* Remove strlower_m() and strupper_m() from source4 and common code.Andrew Bartlett2011-05-031-4/+2
| | | | | | | | | This function is problematic because a string may expand in size when changed into upper or lower case. This will then push characters off the end of the string in the s3 implementation, or panic in the former s4 implementation. Andrew Bartlett
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-6/+6
| | | | | | | 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-3/+0
|
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-2/+0
| | | | This reduces compile time somewhat.
* 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-3/+6
| | | | | | 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 build for make everything.Jelmer Vernooij2008-11-021-1/+4
|
* Eliminate another instance of global_loadparm.Jelmer Vernooij2008-10-241-3/+6
|
* masktest: Avoid creating new memory context, use dynamic allocation.Jelmer Vernooij2008-10-221-8/+10
|
* Change some dynamic allocations back to static buffers to fix build.Jelmer Vernooij2008-10-221-11/+7
|
* Repel pstring to nsswitch/.Jelmer Vernooij2008-10-221-18/+21
|
* Cope with API changes.Jelmer Vernooij2008-09-301-3/+6
|
* Use a custom init function for samba4 that sets a samba4Simo Sorce2008-06-141-1/+1
| | | | | | | | specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
* Use new dynconfig.h location.Jelmer Vernooij2008-05-271-1/+1
| | | | (This used to be commit c3f556915f09d078253e4c5539910a1cf420eeca)
* Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce2008-04-211-2/+7
| | | | | | | | the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
* fixed masktest to use popt, and fixed the incorrect pstring conversionAndrew Tridgell2008-02-151-94/+63
| | | | (This used to be commit c37133fd95e6d02a0cdf0f7b5408211740d8046c)
* fixed loadparm handling in standalone testsAndrew Tridgell2008-02-151-1/+1
| | | | (This used to be commit 2633f4259ed30ab990017c4c3205f92bf38f0135)
* r26654: libcli/smb_composite: Rather than specifying each of the gazillion ↵Jelmer Vernooij2008-01-031-3/+9
| | | | | | 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-3/+5
| | | | | | functions, should help fix the build for OpenChange. (This used to be commit 385ffe4f4cc9a21a760c0f00410f56e2592fd507)
* r26606: masktest: Dynamically allocate strings.Kai Blin2007-12-261-21/+27
| | | | (This used to be commit c38f3c6fe9c54339805490ab5ecd6b3d13a35bdb)
* r26605: masktest: Get rid of pstrings.Kai Blin2007-12-261-23/+35
| | | | (This used to be commit d54fcf4f826d3c650c19eea9ccc45b786c6ae68a)
* r26429: Avoid use of global_smb_iconv_convenience.Jelmer Vernooij2007-12-211-2/+0
| | | | (This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
* r26409: Pass smb ports along.Jelmer Vernooij2007-12-211-2/+3
| | | | (This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)
* r26382: Remove more uses of global_loadparm.Jelmer Vernooij2007-12-211-2/+0
| | | | (This used to be commit 6d4c59853481855c232e7cf97264a391f40af2b5)
* r26355: Eliminate global_loadparm in more places.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 5d589a0d94bd76a9b4c9fc748854e8098ea43c4d)
* r26352: Don't make lp_load create a new context.Jelmer Vernooij2007-12-211-1/+2
| | | | (This used to be commit d0d5c1a823a6601292c061dba2b6f4bde2b9e3dd)
* r26339: Make loadparm talloc-allocated.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 1e02cd8db1d65ff72b747833904a10b47749b1fb)
* r26278: Tallocify convenience table for iconv handles.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit ad64b3baa4a5383c603d17ae75c33083af4690bb)
* r26275: return loadparm context in lp_load.Jelmer Vernooij2007-12-211-4/+5
| | | | (This used to be commit d01f0f4c2037b531b3fd088060717f90e60471e9)
* r26270: Require specifying the loadparm_context or NULL to ↵Jelmer Vernooij2007-12-211-1/+1
| | | | | | cli_credentials_guess(). (This used to be commit e52710d6794a25ba697f8c26b43784226964f9cb)
* r26260: Store loadparm context in gensec context.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit b9e3a4862e267be39d603fed8207a237c3d72081)
* r26226: Avoid more uses of global_loadparm.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 6cbce47a3eaef76a89db7cd0ab0d4f6441fc720d)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-9/+9
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-1/+2
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25392: Add loadparm context as argument in a couple more places.Jelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit c62f51cc28a37959128e78a1f34cfd4c6d3ba069)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r20650: revert a bunch of code I didn't mean to commit yetAndrew Tridgell2007-10-101-4/+0
| | | | (This used to be commit b3e2d4908781781a487eaeb683d22eb967e5597d)
* r20647: add cluster codeAndrew Tridgell2007-10-101-0/+4
| | | | (This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)
* r19598: Ahead of a merge to current lorikeet-heimdal:Andrew Bartlett2007-10-101-0/+1
| | | | | | | | | Break up auth/auth.h not to include the world. Add credentials_krb5.h with the kerberos dependent prototypes. Andrew Bartlett (This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)