summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* replace: allow memmem() with an empty string to return NULLAndrew Tridgell2010-03-301-1/+3
| | | | | This is how FreeBSD behaves. We don't rely on it returning the string in Samba.
* charset: look for the codepages in the right placeAndrew Tridgell2010-03-301-2/+2
| | | | | selftest runs from source3/source4. The codepages when not installed are in ../codepages
* subunit: Update to newer upstream version.Jelmer Vernooij2010-03-295-3/+50
|
* s4-python: Move dnspython to lib/, like the other Python modulesJelmer Vernooij2010-03-29113-0/+16825
| | | | | This also avoids it from being installed if it's already present on the system.
* s4-waf: use the libreplace strerror_r if neededAndrew Tridgell2010-03-292-6/+11
|
* pytalloc: allow for using a system libtalloc-dev with pytallocAndrew Tridgell2010-03-291-1/+1
| | | | | | | | | When we have a system talloc library, we still need to grab pytalloc.h from lib/talloc. We don't want to just use -Ilib/talloc, as otherwise we'll get the in-tree talloc.h which may not be compatible with the system talloc.h So we need to give the path to pytalloc.h
* talloc: testsuite should use <talloc.h> not "talloc.h"Andrew Tridgell2010-03-291-1/+1
| | | | | if we are using the system talloc, the testsuite needs to use the system talloc.h
* tdb: update exports and signatures filesSimo Sorce2010-03-262-0/+2
|
* tdb: Add a non-blocking version of tdb_transaction_startVolker Lendecke2010-03-266-8/+24
|
* s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider2010-03-262-5/+7
|
* tevent: added tevent_re_initialise()Andrew Tridgell2010-03-262-0/+17
| | | | | | | | | | This allows us to re-initialise a tevent context without destroying the pointer. That means that if someone keeps a long term ptr to the event context across a fork it will still work. This also brings the memory handling in single and standard process models much closer together, which means less bugs that we don't find with make test.
* util: on FreeBSD true is in /usr/bin. Use execvp to find itAndrew Tridgell2010-03-261-1/+1
|
* libutil: moved the networking defines to util_net.hAndrew Tridgell2010-03-263-27/+29
| | | | These were causing thousands of warnings on solaris8
* libreplace: strerror_r() is needed by heimdal on solaris8Andrew Tridgell2010-03-263-1/+14
|
* tsocket: not all systems have IPV6_V6ONLYAndrew Tridgell2010-03-261-2/+2
|
* tdb: Fix indentation in tdb_new_database()Volker Lendecke2010-03-251-1/+1
|
* Fix some nonempty blank linesVolker Lendecke2010-03-2510-45/+44
|
* python: use '#!/usr/bin/env python' to cope with varying install locationsAndrew Tridgell2010-03-253-3/+3
| | | | this should be much more portable
* libreplace: fixed declaration of dprintf() on FreeBSDAndrew Tridgell2010-03-242-2/+12
|
* build: fixed nss_wrapper on solarisAndrew Tridgell2010-03-241-0/+4
| | | | solaris has different getpwnam_r syntax
* convert_string_talloc_convenience - print out the input buffer in a better ↵Matthias Dieter Wallnöfer2010-03-221-1/+2
| | | | way (using dump_data since it isn't always directly readable)
* tdb: Fix bug 7248, avoid the nanosleep dependencyVolker Lendecke2010-03-221-4/+4
|
* lib/util: add allocate_anonymous_shared()Stefan Metzmacher2010-03-222-0/+33
| | | | metze
* Fix an uninitialized variableVolker Lendecke2010-03-211-0/+4
|
* Use TALLOC_FREE in talloc_pop()Volker Lendecke2010-03-211-2/+1
|
* Use calloc instead of ZERO_STRUCTP in talloc_stackframe_create()Volker Lendecke2010-03-211-7/+5
|
* Trim an overlong lineVolker Lendecke2010-03-211-2/+2
|
* nss_wrapper.pl: allow to specify gid for new users.Günther Deschner2010-03-191-21/+24
| | | | Guenther
* charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell2010-03-183-13/+39
| | | | | | | | | | | We had a crash bug where a cached copy of a iconv convenience pointer was used after being freed when loadparm asked for iconv to reload. This could happen if a python module used a iconv based function before loadparm was completed. The fix is to ensure that any use of this pointer remains valid, by reusing the pointer itself when it has already been initialised, but filling in the child elements with the updated values.
* talloc_stack: reset stackframe pointers to NULLStefan Metzmacher2010-03-151-0/+2
| | | | | | This makes it easier to debug the code in future. metze
* talloc_stack: make sure we never let talloc_tos() return ts->talloc_stack[-1]Stefan Metzmacher2010-03-151-1/+1
| | | | | | | | | | | In smbd there's a small gab between TALLOC_FREE(frame); before be call smbd_parent_loop() where we don't have a valid talloc stackframe. smbd_parent_loop() calls talloc_stackframe() only within the while(1) loop. As DEBUG(2,("waiting for connections")) uses talloc_tos() to construct the time header for the debug message we crash on some systems. metze
* s4: create ../lib/iniparser_build/config.m4Matthieu Patou2010-03-111-0/+45
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Explain why we don't use certain characters in the generated pwAndrew Bartlett2010-03-111-0/+6
|
* lib/util - Removed curly braces from generate_random_password().Endi S. Dewata2010-03-111-1/+1
|
* Move prototype to header of common code for set_sockaddr_portAndrew Bartlett2010-03-111-0/+2
|
* doxygen: talloc_get_type name fixed in Doxygen documentationKamen Mazdrashki2010-03-101-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/util: change samba_runcmd() to use tevent_req _send/_recvStefan Metzmacher2010-03-092-146/+188
| | | | metze
* replace: added get_current_dir_name()Andrew Tridgell2010-03-053-0/+18
|
* s4-privs: add root_privileges_original_uid()Andrew Tridgell2010-03-051-0/+6
| | | | | | | This can be used to get the uid we changed away from when we gained root privileges Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Fix typo in comments.Karolin Seeger2010-03-032-4/+4
|
* s3: Move source3/iniparser to lib/iniparser to allow sharing between s3/s4Matthieu Patou2010-03-0326-0/+3501
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tdb: If tdb_parse_record does not find a record, return -1 instead of 0Volker Lendecke2010-02-282-1/+23
|
* tsocket: Improve the tsocket_address_bsd_sockaddr documentation.Andreas Schneider2010-02-261-1/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/util: add generate_random_password()Stefan Metzmacher2010-02-262-0/+47
| | | | metze
* s4-dns: use a loadparm list for samba_runcmd() commandsAndrew Tridgell2010-02-262-6/+6
| | | | | | This allows commands with multiple arguments and quoting to be used, while still avoiding running a shell (and this having shell expansion problems)
* tdb: handle processes dying during transaction commit.Rusty Russell2010-02-243-0/+86
| | | | | | | | | | | | | | | | | | | | | | | tdb transactions were designed to be robust against the machine powering off, but interestingly were never designed to handle the case where an administrator kill -9's a process during commit. Because recovery is only done on tdb_open, processes with the tdb already mapped will simply use it despite it being corrupt and needing recovery. The solution to this is to check for recovery every time we grab a data lock: we could have gained the lock because a process just died. This has no measurable cost: here is the time for tdbtorture -s 0 -n 1 -l 10000: Before: 2.75 2.50 2.81 3.19 2.91 2.53 2.72 2.50 2.78 2.77 = Avg 2.75 After: 2.81 2.57 3.42 2.49 3.02 2.49 2.84 2.48 2.80 2.43 = Avg 2.74 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* patch tdb-refactor-tdb_lock-and-tdb_lock_nonblock.patchRusty Russell2010-02-241-16/+13
|
* tdb: add -k option to tdbtortureRusty Russell2010-02-241-57/+142
| | | | | | | | | | | | | | To test the case of death of a process during transaction commit, add a -k (kill random) option to tdbtorture. The easiest way to do this is to make every worker a child (unless there's only one child), which is why this patch is bigger than you might expect. Using -k without -t (always transactions) you expect corruption, though it doesn't happen every time. With -t, we currently get corruption but the next patch fixes that. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: don't truncate tdb on recoveryRusty Russell2010-02-241-10/+0
| | | | | | | | | The current recovery code truncates the tdb file on recovery. This is fine if recovery is only done on first open, but is a really bad idea as we move to allowing recovery on "live" databases. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: remove lock opsRusty Russell2010-02-244-40/+22
| | | | | | | | | | | | Now the transaction code uses the standard allrecord lock, that stops us from trying to grab any per-record locks anyway. We don't need to have special noop lock ops for transactions. This is a nice simplification: if you see brlock, you know it's really going to grab a lock. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>