summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-02-18S3: Stop creating SMBD cores when failing to create a pipe.todd stecher1-1/+11
This was uncovered when the MAX FD limit was hit, causing an instant core and invoking error reporting. This fix causes SMBD to exit, but without building a core.
2009-02-17Fix warning about missmatch of uint32_t and size_t.Jeremy Allison1-1/+1
Jeremy.
2009-02-17s3-netapi: fix Coverity #881 and #882.Günther Deschner1-7/+56
Guenther
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke1-30/+1
2009-02-12tidy up timestamp checksBjörn Jacke1-33/+33
AC_CHECK_MEMBERS should be a sufficient check, there's no need to do manual compile tests. We can also assume that we have ctime and atime members when we have the mtime member.
2009-02-11s3: Implement wbcGetSidAliasesDan Sledz1-0/+84
* Adds wbcGetSidAliases that calls the lookup_useraliases function. * Updates wbinfo and winbind_util.c to call the new function. * Also added winbind_get_groups helper function.
2009-02-11s3: Implement wbcGetpwsidDan Sledz1-0/+47
* Adds the plumbing required to lookup users by sid into winbind, wbinfo and smbd helper lib (winbind_util.c). * Removes some double declarations of winbind_util.c functions. * Bumps the winbind protocol version to 21 and the minor version of wbclient to 3.
2009-02-10S3: Fixes for coverity issues.todd stecher1-4/+10
2009-02-10Add read_pkt_send/recvVolker Lendecke1-0/+99
2009-02-09s3 oplocks: Make the level2 oplock contention API more granularTim Prouty1-0/+19
This replaces release_level2_oplocks_on_change with contend_level2_oplock_begin/end in order to contend level2 oplocks throughout an operation rather than just at the begining. This is necessary for some kernel oplock implementations, and also lays the groundwork for better correctness in Samba's standard level2 oplock handling. The next step for non-kernel oplocks is to add additional state to the share mode lock struct that prevents any new opens from granting oplocks while a contending operation is in progress. All operations that contend level 2 oplocks are now correctly spanned except for aio and synchronous writes. The two write paths both have non-trivial error paths that need extra care to get right. RAW-OPLOCK and the rest of 'make test' are still passing with this change.
2009-02-09s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty1-4/+7
Fallback on EAGAIN
2009-02-09async_sock: Use unix errnos instead of NTSTATUSKai Blin3-143/+194
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would be pointless to convert to errno first and to wbcErr later.
2009-02-06netapi: add NetServer testsuite.Günther Deschner4-1/+69
Guenther
2009-02-06netapi: include more SERVER_INFO_X levels in example code.Günther Deschner1-0/+16
Guenther
2009-02-06netapi: implement more SERVER_INFO_X levels.Günther Deschner1-1/+271
Guenther
2009-02-06netapi: add SERVER_INFO_X to public header.Günther Deschner1-0/+612
Guenther
2009-02-04Have nmbd check all available interfaces for WINS before failingAravind Srinivasan1-2/+5
When nmbd is acting as WINS, it picks the first interface's IP as WINS server's IP. If the first interface's IP is zero, we will just quit (even though we might have other interfaces with valid IPs). This patch makes nmbd look at all interfaces and pick the first interface with a valid IP as the WINS server's IP.
2009-02-02Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or ↵Jeremy Allison1-1/+4
delete file This fixes the generic rename/delete problem for 3.3.0 and above. Fixed slightly differently to discussions, user viewable modified ACLs are not a good idea :-). Jeremy.
2009-02-02s3-wbclient: Use new tevent data typesKai Blin2-15/+15
2009-02-02Next step disentangling async_req from NTSTATUSVolker Lendecke3-18/+18
Now I need to document this :-)
2009-02-01Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke3-65/+65
2009-02-01cli_get_pipe_name_from_interface does not really need a talloc_ctxVolker Lendecke1-1/+1
2009-01-31Remove the global variable "chain_size"Volker Lendecke1-3/+0
2009-01-30s3:smbconftort: don't use reserved words ('test:', 'failure:', 'success:')Stefan Metzmacher1-31/+29
Temporary results printfs should not contain reserved subunit words. metze
2009-01-29Merge branch 'master' of ssh://jra@git.samba.org/data/git/sambaJeremy Allison1-1/+10
2009-01-29s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operationTim Prouty1-1/+10
This allows module implementors to customize what allocation size is returned to the client.
2009-01-29add Tru64 sub-second resolution timestamp supportBjörn Jacke1-0/+24
2009-01-29Fix the build on "opi"Volker Lendecke2-2/+3
It did not like to include "includes.h" twice
2009-01-29add missing semicolonsBjörn Jacke1-6/+6
the fixed configure check led to a missing semicolon in the now activated BSD code. Then this error was even copypasted into the new AIX code. grrr
2009-01-29setting mtime setted atime on BSD systems, fix thisBjörn Jacke1-2/+2
2009-01-29add AIX sub-second resolution timestamp supportBjörn Jacke1-0/+24
2009-01-29s3:ctdbd_conn: canonicalize ips before sending them to ctdbdStefan Metzmacher1-10/+40
This makes samba work with older ctdb versions. metze
2009-01-28Avoid valgrind errorsVolker Lendecke1-35/+13
In event handlers, we might destroy other events that are pending in the lists. We can only run one event safely per select call. Yes, I've seen these valgrind errors :-) Jeremy, with ccdd921e61 you had checked in the change to run multiple events. Do you remember why it was necessary and could not be solved in a different way? Volker
2009-01-28async_sock: Move to top levelKai Blin1-693/+0
2009-01-28s3:tdb_validate: clean up leading tabs/spaces and trailing spaces.Michael Adam1-28/+28
Michael
2009-01-28s3: separate tdb validation code out into its own source fileMichael Adam3-484/+580
So this gets now linked only into its single user: winbindd (needed by winbindd_cache.c) Michael
2009-01-23This change allows for the autoconfigre detection of sub-second time ↵todd stecher1-0/+12
resolution in the FreeBSD stat structure
2009-01-23s3 ldb: Fix vasprintf segfault that has been the source of build machine ↵Tim Prouty1-5/+8
failures this week The bug was introduced when converting samba3's ldb_search interface to match samba4: 47951fc5d0085e124666b7667715bba98076820e f3ecb701335b1129947127d4c45eef970b66875c
2009-01-23async_req: Move to top level dirKai Blin1-340/+0
2009-01-22s3:messages: finally make message_dispatch() staticStefan Metzmacher1-1/+2
metze
2009-01-22s3:messaging: start with to use signal events instead of the raw signal ↵Stefan Metzmacher1-37/+65
interfaces metze
2009-01-22s3:events: always run_events() before sys_select()Stefan Metzmacher1-5/+4
We might have pending signal events not only timed events. metze
2009-01-22Actually complete 3662c2b...Volker Lendecke1-2/+1
2009-01-21Memory leaks and other fixes found by Coveritytodd stecher1-11/+15
2009-01-21libsmbconf: move the non-registry parts of libsmbconf to top levelMichael Adam6-1428/+0
Michael
2009-01-21s3:libsmbconf: include smbconf headers with lib/smbconf prefixMichael Adam2-4/+4
Michael
2009-01-21s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backendMichael Adam1-20/+20
Michael
2009-01-21s3:libsmbconf: use talloc_free instead of TALLOC_FREE in txt backendMichael Adam1-5/+6
Michael
2009-01-21s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_initMichael Adam1-1/+1
Michael
2009-01-21s3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuiteMichael Adam1-5/+5
Michael