summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
AgeCommit message (Collapse)AuthorFilesLines
2008-01-23Fix tab_depth: it should not create an extra debug header.Michael Adam1-1/+1
In pstring removal 4ae4b23586, the behaviour of tab_depth was changed to create an extra debug header (by using the DEBUGLVL macro). This extracts the debug level check from DEBUGLVL into a macro CHECK_DEBUGLVL without the debug header creation and uses this instead of DEBUGLVL in tab_depth. Michael (This used to be commit cbc7d921fa696e6c3c5197ad9f87442ba679df82)
2008-01-19Add "split_ntfs_stream_name()" together with a torture testVolker Lendecke1-0/+90
(This used to be commit d813bd9e02d9baf916eb96c478be89f0c435e07c)
2008-01-16Merge CTDB-related fixes from samba-ctdb 3.0 branch ↵Alexander Bokovoy1-0/+13
(http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 0c8e23afbbb2d081fc23908bafcad04650bfacea)
2008-01-10Move transfer_file and transfer_file_internal to a module of their own.Michael Adam1-87/+0
Also, don't auto-generate prototypes of the (two) exported functions but make a start in having handwritten prototypes in dedicated header files (not in includes.h ... :-) Michael (This used to be commit 395f29d8b768a56af20b37f185eccdc5f37b68d5)
2008-01-10Reformat some code I just touched.Michael Adam1-12/+20
Michael (This used to be commit 4ed238b1e46f7680a29ebdbfe9500d16718f9057)
2008-01-10Fix a really silly typo.Michael Adam1-1/+1
Michael (This used to be commit 7b0af7cdc97d4bbcbd73a9474871217511b92c3a)
2008-01-10Correctly abstract the transfer_file mechanism with callbacks and void ptrs.Michael Adam1-5/+23
This removes the in_fsp and out_fsp global variables hack from smbd/vfs.c. Michael (This used to be commit b2e7cdc6e899ca3c16edbb6c8786ff9aa999fa6e)
2008-01-07Add free_local_machine_name().Günther Deschner1-0/+1
Guenther (This used to be commit f3ebb4f96bb0364dae9924e798652e759b63bb52)
2008-01-05Fix missing return - should be void.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 45ae90b77e53cd0cdf50939528dac4d2ca39b5c5)
2008-01-05Add general '-e' option to enable smb encryptionJeremy Allison1-1/+13
on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
2007-12-26Add SMB encryption. Still fixing client decrypt butJeremy Allison1-25/+13
negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
2007-12-17Use the %*s feature of snprintf to remove anothe static fstring.Jeremy Allison1-9/+4
Jeremy. (This used to be commit 4ae4b2358688bf289305a2db0ed01b653ac073b2)
2007-12-12Add split_domain_user() (not to mix with winbind variants).Günther Deschner1-0/+24
Guenther (This used to be commit bd5308e5f63e4f692761557d0ecdee7226b66a15)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison1-5/+5
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-07Remove pstrings completely except for smbctool (what does this do ?).Jeremy Allison1-8/+8
Don't build this for now. Jeremy. (This used to be commit 46b67fd82c795d1a34a1efca9e409c0f3fa4f3a2)
2007-12-06*Really* fix the no password -N opt :-).Jeremy Allison1-7/+0
Jeremy. (This used to be commit 187d8a94eae87a32432c7c295698517b6ae31523)
2007-12-06Get closer to building with smbmount. Move parameter line changesJeremy Allison1-1/+108
into lib/util.c Jeremy. (This used to be commit 6ac5d81655927ba8eabea35adaae5adfcbb821c9)
2007-12-06Remove pstrings from client/client.c by doing a large rewrite.Jeremy Allison1-19/+1
Mostly compiles.... Jeremy. (This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
2007-12-05Compile fix to the automount support. Patch from GlaDiaC.Gerald (Jerry) Carter1-1/+1
(This used to be commit 487ab6e75e8b8d15f2a37e4ba4129eb2475d4c86)
2007-12-04Remove pstring from automount lookups. Remove premature optimization.Jeremy Allison1-69/+57
Jeremy. (This used to be commit 6863fe51b5afea234b04b073d3e1b7608d60620e)
2007-11-30Fix build warning.Günther Deschner1-1/+1
Guenther (This used to be commit bf4881d7774681e22f270697c7623bde33c30fe0)
2007-11-15More pstring removal. This one was tricky. I had to addJeremy Allison1-91/+113
one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
2007-11-09Remove more static fstring/pstrings. Fix socket optionJeremy Allison1-25/+30
set on wrong fd (-1). Jeremy. (This used to be commit 52fe04df8e8c08126afe61d509fc1d3cb676e327)
2007-11-09Remove the silly "user_socket_options" global variableVolker Lendecke1-1/+0
This is better done with a 'lp_do_parameter(-1, "socket options", ..); (This used to be commit 814bed029efa391e664ac432d0d68dfeab26381f)
2007-11-08More pstring/fstring removal.Jeremy Allison1-11/+16
Jeremy. (This used to be commit 7646f4b284403c18b22ca5cc7de4a57ba571183e)
2007-11-08Remove more pstring/fstrings.Jeremy Allison1-56/+43
Jeremy. (This used to be commit 7a1de5b44e84a7474e78518c6ba33b3fedc42b5f)
2007-11-08Remove unneeded variable.Jeremy Allison1-6/+3
Jeremy. (This used to be commit c21bc756e36581d3adc770bc2b773b5cf9bf11d0)
2007-11-08Fix case where we have no dns domain name. Return a talloc of "".Jeremy Allison1-0/+2
Jeremy. (This used to be commit ab8934844a8ae08657769ce1787c32f14a7eb745)
2007-11-08Remove more fstring/pstring bad useage. Go talloc !Jeremy Allison1-9/+10
Jeremy. (This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
2007-11-02Fix state_path to take a const string, not use pstring.Jeremy Allison1-7/+11
Jeremy. (This used to be commit 8c73e19f51d6e3f520cf44dd22f9b9584d4b460f)
2007-11-01Patch from Debian Samba package maintainers:Gerald (Jerry) Carter1-0/+33
Patch 1 of 3: - Patch 1 adds the new variables - Patch 2 makes uses of them for files belonging to the "state" path and the "code pages" path This patch seemed more easily acceptable, which explains why we separated it from patch 3 - Patch 3 reassigns files to the "cache" path. Indeed all "debatable" changes have been moved to that one The point is adding: - a path for non discardable state data: basically all TDB files that may need to be backed up - a path for shared data: mostly codepage stuff - a path for cache data to host files such as browse.dat, printers.tbd, <printer>.tdb All these are currently mixed in "libdir" (${prefix}/lib/samba by default). The patch keeps these new paths to point to ${prefix}/lib/samba by default and does therefore not change the software behaviour. Used alone, it just adds unused variables...so it can safely be used in sources without any behaviour change and no impact on Samba developers work. (This used to be commit b7d2fadbef044a89920da613b1aafc74a3d94e24)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-42/+42
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-16Fix access control code to be IPv6/v4 protocol independent.Jeremy Allison1-23/+36
Make unix_wild_match() talloc, not pstring based. Next will be name resolution code, and client code. Jeremy. (This used to be commit f6a01b82c5a47957659df08ea84e335dfbba1826)
2007-10-15Move to protocol independent code in most of lib/util_sock.cJeremy Allison1-68/+37
We don't use gethostbyname any more except in one case where we're looking for host aliases (I don't know how to do that with getaddrinfo yet). New function should be getaddrinfo(). Next step will be fixing lib/access.c, and then changing libsmb/namequery.c to cope with IPv6 address returns. Jeremy. (This used to be commit 4a56b697b6adcf095e25895c4a9ba3192ed34124)
2007-10-10Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison1-189/+0
IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-34/+14
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25505: Add a replacement (IPv4 only) implementation of getaddrinfo/freeaddrinfoJeremy Allison1-4/+4
under the 2 clause *BSD license for future use in IPv6 code. Original code was from PostgreSQL and I've maintained their license even though I've rewritten large parts of it (I probably should donate this back to them). Jeremy. (This used to be commit 760d993340a966269d71acfb7a6b5e4d3776ac5d)
2007-10-10r25472: Fix the interfaces code to detect IPv6 interfaces, using theJeremy Allison1-13/+13
new standard getifaddrs() and freeifaddrs() interfaces. Currently we only return IPv4 af_families. Needs fixing for binds to IPv6 but this has to be careful work. Jeremy. (This used to be commit 327875182c9219aeba687e10aaea93546d9a70ea)
2007-10-10r25396: Very obvious fix from Martin Zielinski.Günther Deschner1-0/+1
Guenther (This used to be commit 1f0d05807b7fe31cc4be59c7a2e850c9ec3e3864)
2007-10-10r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison1-7/+9
the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy. (This used to be commit 7f0db75fb0f24873577dcb758a2ecee74fdc4297)
2007-10-10r24949: Remove some static buffersVolker Lendecke1-47/+29
(This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
2007-10-10r24903: One more tick in #if 0 codeVolker Lendecke1-1/+1
(This used to be commit e0b4fb55e3176785a85d66efece15d0a366a35f1)
2007-10-10r24759: Comment out the _nonnull calls for 3.2.x, as agreed with tridge.Jeremy Allison1-0/+6
Leaving the commented out code for now, in case I need to re-test some stuff. Jeremy (This used to be commit 343be0464342aac14a9592fd73a71b7589ba34d5)
2007-10-10r24000: Add message_push_blob() and message_push_string().Volker Lendecke1-0/+21
The proposed new API convention is to start with a 0 bcc length and then push things step by step. These routines reallocate the outbuf and adjust the length and bcc fields as necessary. (This used to be commit 624f1fe4f6e022d73e78fa8c9646f6f64035f3ee)
2007-10-10r23847: As Dr. Volker says, "A pstring a day....".Jeremy Allison1-7/+9
Jeremy. (This used to be commit 8adf81696aee99c5090e1b827ceb14929ec4aeda)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23594: Fix parsing of local pids if cluster support is compiled in but noVolker Lendecke1-0/+4
cluster is used (This used to be commit 6beaa87da938f2a530939714b732fa769a28a008)
2007-10-10r23510: Tidy calls to smb_panic by removing trailing newlines. Print theJames Peach1-10/+14
failed expression in SMB_ASSERT. (This used to be commit 171dc060e2a576d724eed1ca65636bdafffd7713)
2007-10-10r23410: Merge the core of the cluster code.Volker Lendecke1-11/+70
I'm 100% certain I've forgotten to merge something, but the main code should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and messages_ctdbd.c. There should be no changes to the non-cluster case, it does survive make test on my laptop. It survives some very basic tests with ctdbd enables, I did not do the full test suite for clusters yet. Phew... Volker (This used to be commit 15553d6327a3aecdd2b0b94a3656d04bf4106323)