summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman2009-02-231-29/+0
| | | | | | | | | | This fixes a bug in 116ce19b, where we didn't clear the pid cache in become_daemon() and thus the /var/run/smbd.pid didn't match the actual pid of the parent process. Currently S4 will clear the pid cache on fork but doesn't yet take advantage of the pid cache by using sys_pid() instead of the direct get_pid().
* More warning fixes for Solaris.Jeremy Allison2009-02-234-7/+7
| | | | Jeremy.
* s3: Refactor of madvise() usage in c441f58dSteven Danneman2009-02-201-0/+7
| | | | | * move to reinit_after_fork() to protect all Samba daemons * only protect parent processes
* Moved become_daemon() and close_low_fds() to shared util libSteven Danneman2009-02-201-67/+0
|
* s3: Add extid to the dev/inode pairTim Prouty2009-02-191-6/+24
| | | | | | | | | | | This extends the file_id struct to add an additional generic uint64_t field: extid. For backwards compatibility with dev/inodes stored in xattr_tdbs and acl_tdbs, the ext id is ignored for these databases. This patch should cause no functional change on systems that don't use SMB_VFS_FILE_ID_CREATE to set the extid. Existing code that uses the smb_share_mode library will need to be updated to be compatibile with the new extid.
* s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty2009-02-191-16/+1
| | | | | Since file_id_create_dev is incompatible with the concept of file_ids, it is now static and in the one file that needs it.
* Fix an uninitialized variableVolker Lendecke2009-02-191-0/+1
|
* S3: Stop creating SMBD cores when failing to create a pipe.todd stecher2009-02-181-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.
* Fix warning about missmatch of uint32_t and size_t.Jeremy Allison2009-02-171-1/+1
| | | | Jeremy.
* s3-netapi: fix Coverity #881 and #882.Günther Deschner2009-02-171-7/+56
| | | | Guenther
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-131-30/+1
|
* tidy up timestamp checksBjörn Jacke2009-02-121-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.
* s3: Implement wbcGetSidAliasesDan Sledz2009-02-111-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.
* s3: Implement wbcGetpwsidDan Sledz2009-02-111-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.
* S3: Fixes for coverity issues.todd stecher2009-02-101-4/+10
|
* Add read_pkt_send/recvVolker Lendecke2009-02-101-0/+99
|
* s3 oplocks: Make the level2 oplock contention API more granularTim Prouty2009-02-091-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.
* s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty2009-02-091-4/+7
| | | | Fallback on EAGAIN
* async_sock: Use unix errnos instead of NTSTATUSKai Blin2009-02-093-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.
* netapi: add NetServer testsuite.Günther Deschner2009-02-064-1/+69
| | | | Guenther
* netapi: include more SERVER_INFO_X levels in example code.Günther Deschner2009-02-061-0/+16
| | | | Guenther
* netapi: implement more SERVER_INFO_X levels.Günther Deschner2009-02-061-1/+271
| | | | Guenther
* netapi: add SERVER_INFO_X to public header.Günther Deschner2009-02-061-0/+612
| | | | Guenther
* Have nmbd check all available interfaces for WINS before failingAravind Srinivasan2009-02-041-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.
* Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or ↵Jeremy Allison2009-02-021-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.
* s3-wbclient: Use new tevent data typesKai Blin2009-02-022-15/+15
|
* Next step disentangling async_req from NTSTATUSVolker Lendecke2009-02-023-18/+18
| | | | Now I need to document this :-)
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-013-65/+65
|
* cli_get_pipe_name_from_interface does not really need a talloc_ctxVolker Lendecke2009-02-011-1/+1
|
* Remove the global variable "chain_size"Volker Lendecke2009-01-311-3/+0
|
* s3:smbconftort: don't use reserved words ('test:', 'failure:', 'success:')Stefan Metzmacher2009-01-301-31/+29
| | | | | | Temporary results printfs should not contain reserved subunit words. metze
* Merge branch 'master' of ssh://jra@git.samba.org/data/git/sambaJeremy Allison2009-01-291-1/+10
|\
| * s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operationTim Prouty2009-01-291-1/+10
| | | | | | | | | | This allows module implementors to customize what allocation size is returned to the client.
* | add Tru64 sub-second resolution timestamp supportBjörn Jacke2009-01-291-0/+24
|/
* Fix the build on "opi"Volker Lendecke2009-01-292-2/+3
| | | | It did not like to include "includes.h" twice
* add missing semicolonsBjörn Jacke2009-01-291-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
* setting mtime setted atime on BSD systems, fix thisBjörn Jacke2009-01-291-2/+2
|
* add AIX sub-second resolution timestamp supportBjörn Jacke2009-01-291-0/+24
|
* s3:ctdbd_conn: canonicalize ips before sending them to ctdbdStefan Metzmacher2009-01-291-10/+40
| | | | | | This makes samba work with older ctdb versions. metze
* Avoid valgrind errorsVolker Lendecke2009-01-281-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
* async_sock: Move to top levelKai Blin2009-01-281-693/+0
|
* s3:tdb_validate: clean up leading tabs/spaces and trailing spaces.Michael Adam2009-01-281-28/+28
| | | | Michael
* s3: separate tdb validation code out into its own source fileMichael Adam2009-01-283-484/+580
| | | | | | | So this gets now linked only into its single user: winbindd (needed by winbindd_cache.c) Michael
* This change allows for the autoconfigre detection of sub-second time ↵todd stecher2009-01-231-0/+12
| | | | resolution in the FreeBSD stat structure
* s3 ldb: Fix vasprintf segfault that has been the source of build machine ↵Tim Prouty2009-01-231-5/+8
| | | | | | | | | failures this week The bug was introduced when converting samba3's ldb_search interface to match samba4: 47951fc5d0085e124666b7667715bba98076820e f3ecb701335b1129947127d4c45eef970b66875c
* async_req: Move to top level dirKai Blin2009-01-231-340/+0
|
* s3:messages: finally make message_dispatch() staticStefan Metzmacher2009-01-221-1/+2
| | | | metze
* s3:messaging: start with to use signal events instead of the raw signal ↵Stefan Metzmacher2009-01-221-37/+65
| | | | | | interfaces metze
* s3:events: always run_events() before sys_select()Stefan Metzmacher2009-01-221-5/+4
| | | | | | We might have pending signal events not only timed events. metze
* Actually complete 3662c2b...Volker Lendecke2009-01-221-2/+1
|