summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3/smbldap: Fix typo in debug message.Karolin Seeger2009-08-061-1/+1
| | | | | | Karolin (cherry picked from commit 54dffbea663ecf4542d6c5e30da6e346d5d60424) (cherry picked from commit 2538df1ea3229ea6d8242b5ae6fdd3d453395609)
* s3:util: let parent_dirname() correctly return toplevel filenamesStefan Metzmacher2009-07-031-1/+1
| | | | | | | | | metze (cherry picked from commit a14efbadd53ac9678d75e6029f947d63cfa0c4e5) Signed-off-by: Stefan Metzmacher <metze@samba.org> This addresses bug #6526.
* Don't require "Modify property" perms to unjoin (bug #6481) "net ads leave" ↵Jim McDonough2009-06-301-0/+1
| | | | | | | | | | | | | | | | | | | | stopped working when "modify properties" permissions were not granted (meaning you had to be allowed to disable the account that you were about to delete). Libnetapi should not delete machine accounts, as this does not happen on win32. The WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag really means "disable" (both in practice and docs). However, to keep the functionality in "net ads leave", we will still try to do the delete. If this fails, we try to do the disable. Additionally, it is possible in windows to not disable or delete the account, but just tell the local machine that it is no longer in the account. libnet can now do this as well. Don't use ads realm name for non-ads case. #6481 Also check that the connection to ads worked.
* Insure we always return NULL on error.Simo Sorce2009-05-231-0/+1
| | | | | | | It is not technically an ldb bug, but apparently some callers try to access res before checking the ldb_search() return code. So make their attempt very evident (a NULL dereference will make it cristal clear where the bug is).
* s3/smbconf_reg: Fix typo.Karolin Seeger2009-04-071-1/+1
| | | | | | | This used to be commit 6343cab3 in master. Karolin (cherry picked from commit 56e877662dd6da64b348803c24e85f60ee6b3d85)
* Tidy up some convert_string_internal error cases, found by Andrew Bartlett.Jeremy Allison2009-03-311-6/+19
| | | | Jeremy.
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-03-271-0/+27
| | | | | | | | | | correctly. For the clustering case. Clustered setups should have only ever used the unsigned version of TDB_DATA in the first place so they can't be in this mess :-). Just do the normal upgrade in the clustered case. Jeremy.
* s3-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong ↵Günther Deschner2009-03-261-6/+12
| | | | | | information. Guenther
* fixed a bug in message handling for code the change notify codeAndrew Tridgell2009-03-101-2/+16
| | | | | | | | | | | | | | | | | | The change notify code registered a separate message handler for each tree connect. This registration uses the global messaging context. The messaging code would consider a 2nd registration for the same messaging type as being an 'update' of the handler, rather than a new handler. It also would only call the first handler in the linked list for a given message type when dispatching messages. This patch changes the messaging code to allow for multiple registrations of the same message type, and allow for multiple calls to different messaging handler for one incoming message. This fixes the problem with the test_notify_tcon() test that I recently committed to the S4 smbtorture (cherry picked from commit 89e340e09fbdc375c0aa85506add525b8ba5dcd0)
* s3:lib: interfaces.c isn't used in the configure tests anymoreStefan Metzmacher2009-03-091-73/+1
| | | | | | | | | | libreplace always provides the getifaddr() function. This fixes the build on sles8. metze (cherry picked from commit 1410490fe769bc79f98b4ab364685c7aed253e09) (cherry picked from commit bac96af2053996f28894458fce87e84c5c2356ff)
* all BSDs use this evironment variableBjörn Jacke2009-02-231-1/+1
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit cd6ae0de52164dd6f50b3614f2511acb3eb15993) (cherry picked from commit 1ad5f50bdab761c7d3894e94f8fe3b171ec1b219)
* enable IPv6 support for NetBSD, FreeBSDBjörn Jacke2009-02-111-0/+1
| | | | most systems include netinet/in.h via netdb.h but *BSD don't.
* s3: reinit_after_fork() should reinit the event context before theStefan Metzmacher2009-02-061-4/+4
| | | | | | | | | | | | messaging context Because messaging_reinit() may add events to the event context, which will removed by event_context_reinit(). metze (cherry picked from commit 56af6112d67aa9dd3757297fbe29ce1a3eabf00d) Signed-off-by: Michael Adam <obnox@samba.org>
* Have nmbd check all available interfaces for WINS before failingAravind Srinivasan2009-02-051-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.
* add Tru64 sub-second resolution timestamp supportBjörn Jacke2009-01-291-0/+24
|
* 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
* Following Björn JACKE's patch, unify the detection of the timespec code in ↵Jeremy Allison2009-01-291-0/+36
| | | | | | configure.in, and the application of it in time.c Jeremy.
* Avoid valgrind errorsVolker Lendecke2009-01-281-28/+10
| | | | | | | | | | | | | 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
* libreplace: fix detection of netinet/ip.h on solaris 8Michael Adam2009-01-271-1/+5
| | | | | | | | | (The test needs to additionally include <netinet/in_systm.h>.) Michael (cherry picked from commit a223b096700bc54b446a0e152c842b088566720b) Signed-off-by: Michael Adam <obnox@samba.org>
* libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiledMichael Adam2009-01-271-1/+4
| | | | | | | | | under solaris Michael (cherry picked from commit 1b7beaed69823b3c401bc4c0b1c502b671169168) Signed-off-by: Michael Adam <obnox@samba.org>
* lib/replace: add defines to let the callers find out if pwrite and pread are ↵Stefan Metzmacher2009-01-231-0/+6
| | | | | | | | thread/fork safe metze (cherry picked from commit 7fc7ee9331d0539359ad88c527f59d5fdf212209) (cherry picked from commit d74b63091781e442e42b1fa7881e903a0bcc928c)
* "First thing, kill all the language lawyers" :-). Ensure possible insane ↵Jeremy Allison2009-01-161-1/+1
| | | | | | | compilers can't kill us later. Jeremy.
* Allow reinit_after_fork to be called safely from within swat and other ↵Jeremy Allison2009-01-151-10/+14
| | | | | | | binaries that don't have an event context or a msg context. Fixes crash bug in swat. Jeremy.
* Fix bug #6040 - Calling Samba print server with an aliased DNS-name fails.Jeremy Allison2009-01-151-4/+5
| | | | Jeremy.
* Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDBJeremy Allison2009-01-131-2/+2
| | | | Jeremy.
* Even for srclen == 0 we have to return somethingVolker Lendecke2009-01-121-0/+6
| | | | | | | | This fixes a regression reported by Corinna Vinschen <corinna@vinschen.de> Thanks, Volker
* Fix null pointer refrence in event context in backport from v3-3-testBo Yang2009-01-111-2/+6
| | | | Signed-off-by: Bo Yang <boyang@novell.com>
* Backport of the clean event context after fork andBo Yang2009-01-101-32/+0
| | | | krb5 refresh chain fixes.
* Fix race condition in alarm lock processing noticed by Richard Sharpe ↵Jeremy Allison2009-01-081-1/+1
| | | | | | | | | | | | | | | <realrichardsharpe@gmail.com>. "It seems to me that if the lock is already held by another process when we enter this code, there is a race between the timeout and the granting. If the lock is subsequently granted, the process releasing the lock will signal the wait variable (or whatever) and our process will be scheduled. However, if the timeout occurs before we are scheduled, the timeout will be delivered first. We will have the lock but will forget we have the lock, and never release it." Jeremy.
* Fix the build (event context init was different).Jeremy Allison2009-01-051-1/+22
| | | | Jeremy.
* clean event context after child is forked.Bo Yang2009-01-052-0/+9
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix bug 5913.Volker Lendecke2009-01-011-1/+1
| | | | Never seen this to be a problem, but it doesn't hurt either :-)
* s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()Stefan Metzmacher2008-12-291-2/+2
| | | | | | | | All callers expect 0 an success and -1 on error. metze (cherry picked from commit a255f9ce713b29552722ec73e4038226959e1c8e) (cherry picked from commit 9aa543fee7ebcc95125d18868bdec7e4bf577d8a)
* Add code to test write_data_iov a bitVolker Lendecke2008-12-291-0/+11
|
* Make write_data use write_data_iovVolker Lendecke2008-12-291-24/+24
|
* Add write_data_iovVolker Lendecke2008-12-291-0/+69
|
* Add sys_writevVolker Lendecke2008-12-291-0/+14
|
* Fix bug 5969: Optimize smbclient put commandVolker Lendecke2008-12-151-5/+20
| | | | This used to be checkin 3f0406f6 to master
* Fix logging to syslogDan Sledz2008-12-051-1/+1
|
* Fix bug #5928 - Option --version in testparm does not work.Tomasz Krasuski2008-12-051-1/+1
|
* Change sockaddr util function names for consistency and to eliminate name ↵Tim Prouty2008-12-032-12/+12
| | | | conflicts
* Fix circular dependency error with autoconf 2.6.3.Andreas Schneider2008-11-261-0/+2
| | | | Signed-off-by: Andreas Schneider <anschneider@suse.de>
* Make memcache_add_talloc NULL out the source pointerVolker Lendecke2008-11-142-3/+13
| | | | | This is an orthogonality measure to make clear this pointer now belongs to the cache.
* Actually finish memcache_add_tallocVolker Lendecke2008-11-141-1/+18
| | | | | | | This fixes a memleak found by Martin Zielinski <mz@seh.de>. Thanks for looking closely! Volker
* Rename some variables in getpwnam_alloc() for clarityVolker Lendecke2008-11-141-10/+11
|
* sys_pwnam doesn't return talloced memory, so don't mix up the returned struct.Volker Lendecke2008-11-141-4/+1
|
* Coverity fix #CID: 607 - resource leak on error path.Jeremy Allison2008-10-291-0/+1
| | | | Jeremy.
* Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.Jeremy Allison2008-10-211-0/+11
| | | | Jeremy.
* Remove the requirement for ldap call made as root. Add in securityJeremy Allison2008-10-201-7/+0
| | | | | checks for all SAMR calls. Jeremy.
* Unify the logic in pull_ascii_base_talloc() and pull_ucs2_base_talloc().Jeremy Allison2008-10-161-7/+27
| | | | Jeremy.