summaryrefslogtreecommitdiff
path: root/lib/util
Commit message (Collapse)AuthorAgeFilesLines
* lib/util: fix waf configure tests for xattr functions on Mac OS 10.Stefan Metzmacher2010-05-141-4/+6
| | | | metze
* Install util/tevent_* public headers. Required by OpenChange for compiling IDLJulien Kerihuel2010-05-122-1/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* util-runcmd: ignore spurious ECHILD errorsAndrew Tridgell2010-04-201-0/+14
| | | | | | | | | | when we get ECHILD in samba_runcmd it is because the parent has set SIGCHLD to SIG_IGN. In that case the child status information is lost. We then have to fallback on the logging of child error messages for any useful information on what happened to the child. A longer term fix is to stop using SIG_IGN for SIGCHLD in the standard process model of s4.
* runcmd: use tevent_re_initialise() to close socketsAndrew Tridgell2010-04-191-0/+4
| | | | this ensures that all event fds are closed in the child
* libreplace: added _PUBLIC_ and _PRIVATE_ to replace.hAndrew Tridgell2010-04-181-6/+0
| | | | | these are needed for all libs that use ABI checking, so libreplace is the logical place for now
* s4-waf: inline LIBREPLACE_NETWORK into 'replace'Stefan Metzmacher2010-04-121-1/+1
| | | | metze
* build: allow the waf build to work with python 3.0 and 3.1Thomas Nagy2010-04-081-1/+1
| | | | | | Python 3.x is a bit fussier about print statements and indentation. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-3/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: more dependencies on tallocAndrew Tridgell2010-04-061-4/+5
| | | | | these are needed so we can support a system talloc without using the bundled talloc.h
* s4-waf: fixed some deps now we don't auto-include tevent and replaceAndrew Tridgell2010-04-061-1/+1
| | | | | this is preparation for being able to use system versions of these libraries
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-064-0/+8
| | | | them
* s4-waf: install the rest of the headersAndrew Tridgell2010-04-061-3/+4
|
* s4-waf: started adding auto-install of include filesAndrew Tridgell2010-04-061-1/+2
|
* s4-waf: look for libiconv before checking libcAndrew Tridgell2010-04-061-1/+6
| | | | This is needed for solaris8
* s4-waf: added checks for all the different statvfs varientsAndrew Tridgell2010-04-061-4/+83
|
* s4-waf: remove the need for some of the lib aliasesAndrew Tridgell2010-04-062-2/+2
|
* build: updated configure checks or new syntaxAndrew Tridgell2010-04-062-18/+5
|
* build: check libc first for several librariesAndrew Tridgell2010-04-061-1/+1
|
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-062-0/+68
|
* build: added statvfs64 testAndrew Tridgell2010-04-061-0/+9
|
* build: iconv checksAndrew Tridgell2010-04-061-0/+10
|
* build: check for xattr supportAndrew Tridgell2010-04-061-0/+6
|
* build: move gettimeofday check to libreplaceAndrew Tridgell2010-04-061-1/+0
| | | | | - add checklink option to CHECK_FUNC() - Used for when a prototype is not available
* build: added interface checking and nicer snprintf checkingAndrew Tridgell2010-04-061-1/+1
| | | | use CHECK_CODE()
* build: added CHECK_CODE_COMPILES()Andrew Tridgell2010-04-061-0/+2
|
* build: check xattr and frsizeAndrew Tridgell2010-04-061-0/+5
|
* build: check signal functionsAndrew Tridgell2010-04-061-0/+2
|
* build: backtrace and crypt testsAndrew Tridgell2010-04-061-2/+1
|
* build: check for backtraceAndrew Tridgell2010-04-061-0/+6
|
* debug: enable talloc loggingAndrew Tridgell2010-04-022-0/+15
| | | | we want to ensure talloc warnings are printed in the log
* 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
* s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider2010-03-262-5/+7
|
* 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
* 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)
* 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
|
* 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
* 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
|
* lib/util: change samba_runcmd() to use tevent_req _send/_recvStefan Metzmacher2010-03-092-146/+188
| | | | metze
* 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>
* 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)