summaryrefslogtreecommitdiff
path: root/source4/ntvfs/simple/svfs_util.c
Commit message (Collapse)AuthorAgeFilesLines
* 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:ntvfs: fix O3 error unused result of asprintf in svfs_file_utimeMichael Adam2016-05-131-1/+6
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* 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
* Remove strlower_m() and strupper_m() from source4 and common code.Andrew Bartlett2011-05-031-9/+6
| | | | | | | | | 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:ntvfs/simple/svfs_util.c - change an "asprintf" into a "talloc_asprintf"Matthias Dieter Wallnöfer2010-05-281-2/+3
|
* Change uint_t to unsigned int in source4Matt Kraai2010-02-021-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:ntvfs/simple: s/private/pStefan Metzmacher2009-02-021-6/+6
| | | | metze
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+1
| | | | remove some unused functions.
* 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)
* r14736: - the ntvfs subsystem should not know about smb_server.hStefan Metzmacher2007-10-101-1/+0
| | | | | | | | - the process module subsystem should not know about smb_server.h - the smb_server module should not know about process models metze (This used to be commit bac95bb8f4ad35a31ee666f5916ff9b2f292d964)
* r14157: - pass a struct ntvfs_request to the ntvfs layerStefan Metzmacher2007-10-101-3/+3
| | | | | | | | | | (for now we just do #define ntvfs_request smbsrv_request, but it's the first step...) - rename ntvfs_openfile() -> ntvfs_open() - fix the talloc hierachie in some places in the ntvfs_map_*() code metze (This used to be commit ed9ed1f48f602354810937c0b0de850b44322191)
* r12694: Move some headers to the directory of the subsystem they belong to.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
* r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 87f665a1d5ba74289974bf9d8f9441c162e6f1b1)
* r5302: fixed a compilation problem on solaris caused by the recent includeAndrew Tridgell2007-10-101-10/+0
| | | | | changes (This used to be commit e7e015f79b10c353848a17f31c91a0593790a560)
* r5298: - got rid of pstring.h from includes.h. This at least makes it a bitAndrew Tridgell2007-10-101-0/+1
| | | | | | | | | | less likely that anyone will use pstring for new code - got rid of winbind_client.h from includes.h. This one triggered a huge change, as winbind_client.h was including system/filesys.h and defining the old uint32 and uint16 types, as well as its own pstring and fstring. (This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)
* r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell2007-10-101-2/+2
| | | | | | large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
* r3447: more include/system/XXX.h include filesAndrew Tridgell2007-10-101-0/+2
| | | | (This used to be commit 264ce9181089922547e8f6f67116f2d7277a5105)
* r2751: this is a new ntvfs design which tries to solve:Stefan Metzmacher2007-10-101-5/+7
| | | | | | | | | | | - the stacking of modules - finding the modules private data - hide the ntvfs details from the calling layer - I set NTVFS_INTERFACE_VERSION 0 till we are closer to release (because we need to solve some async problems with the module stacking) metze (This used to be commit 3ff03b5cb21bb79afdd3b1609be9635f6688a539)
* r2671: we're getting too many errors caused by the talloc_realloc() API notAndrew Tridgell2007-10-101-2/+2
| | | | | | | | taking a context (so when you pass a NULL pointer you end up with memory in a top level context). Fixed it by changing the API to take a context. The context is only used if the pointer you are reallocing is NULL. (This used to be commit 8dc23821c9f54b2f13049b5e608a0cafb81aa540)
* r2561: completely redid the ntvfs module chaining code, You can now do ↵Andrew Tridgell2007-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | something like: ntvfs handler = nbench posix and the nbench pass-thru module will be called before the posix module. The chaining logic is now much saner, and less racy, with each level in the chain getting its own private pointer rather than relying on save/restore logic in the pass-thru module. The only pass-thru module we have at the moment is the nbench one (which records all traffic in a nbench compatibe format), but I plan on soon writing a "unixuid" pass-thru module that will implement the setegid()/setgroups()/seteuid() logic for standard posix uid handling. This separation of the posix backend from the uid handling should simplify the code, and make development easier. I also modified the nbench module so it can do multiple chaining, so if you want to you can do: ntvfs module = nbench nbench posix and it will save 2 copies of the log file in /tmp. This is really only useful for testing at the moment until we have more than one pass-thru module. (This used to be commit f84c0af35cb54c8fdc4933afefc18fa4c062aae4)
* r2249: got rid of some more mem_ctx elements in structuresAndrew Tridgell2007-10-101-2/+2
| | | | (This used to be commit 21ef338cbbe96acc8594ffc550ef60c6a40fb951)
* r2030: quick hack to allow the simple NTVFS backend to handler base ↵Andrew Tridgell2007-10-101-1/+1
| | | | | | directories with mixed case names (This used to be commit efecc3306efb17f586b781112886d9416b355d65)
* r1983: a completely new implementation of tallocAndrew Tridgell2007-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This version does the following: 1) talloc_free(), talloc_realloc() and talloc_steal() lose their (redundent) first arguments 2) you can use _any_ talloc pointer as a talloc context to allocate more memory. This allows you to create complex data structures where the top level structure is the logical parent of the next level down, and those are the parents of the level below that. Then destroy either the lot with a single talloc_free() or destroy any sub-part with a talloc_free() of that part 3) you can name any pointer. Use talloc_named() which is just like talloc() but takes the printf style name argument as well as the parent context and the size. The whole thing ends up being a very simple piece of code, although some of the pointer walking gets hairy. So far, I'm just using the new talloc() like the old one. The next step is to actually take advantage of the new interface properly. Expect some new commits soon that simplify some common coding styles in samba4 by using the new talloc(). (This used to be commit e35bb094c52e550b3105dd1638d8d90de71d854f)
* r1280: rename struct request_context to smbsrv_requestStefan Metzmacher2007-10-101-3/+3
| | | | | metze (This used to be commit a85d2db5826a84b812ea5162a11f54edd25f74e3)
* r1279: rename struct tcon_context to smbsrv_tconStefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit 99473fab4b1ff87a795f3c08f4c521d9beb504c0)
* r889: convert samba4 to use [u]int16_t instead of [u]int16Stefan Metzmacher2007-10-101-2/+2
| | | | | metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3)
* r873: converted samba4 to use real 64 bit integers instead ofAndrew Tridgell2007-10-101-2/+2
| | | | | | | | | | structures. This was suggested by metze recently. I checked on the build farm and all the machines we have support 64 bit ints, and support the LL suffix for 64 bit constants. I suspect some won't support strtoll() and related functions, so we will probably need replacements for those. (This used to be commit 9a9244a1c66654c12abe4379661cba83a73c4c21)
* r65: added support for file streams in the simple NTVFS backendAndrew Tridgell2007-10-101-5/+21
| | | | (This used to be commit 9a9cc44a05510a69ad902db4d01dc12b6ac4f8ba)
* thanks to ntfsd and some google searches I worked out what the unknownAndrew Tridgell2003-09-021-0/+11
| | | | | | | | | fields in level 261 and level 262 of directory search are, plus the names of the levels the unknown fields are a 64bit unique file id, and match the 64 bit number from the internal_information qfileinfo level (This used to be commit b69f54eb028a24144a2e813f059b08644118ab09)
* first public release of samba4 codeAndrew Tridgell2003-08-131-0/+162
(This used to be commit b0510b5428b3461aeb9bbe3cc95f62fc73e2b97f)