summaryrefslogtreecommitdiffstats
path: root/lib/util
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* libutil: Remove obsolete signal type cast.Andreas Schneider2010-02-231-5/+5
|
* Spelling fixes for libutilBrad Hards2010-02-227-24/+24
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* util: added samba_runcmd()Andrew Tridgell2010-02-173-0/+275
| | | | | | | | | This allows us to run a child command in an async fashion, with control over logging of stdout and stderr (which appears in the Samba log file). This is useful for ensuring we don't miss important messages from rndc commands (for example). Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: removed gendb_search_single_extended_dn()Andrew Tridgell2010-02-162-105/+0
| | | | | | Use dsdb_search_one() instead, which allows for arbitrary controls Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* lib: use TYPESAFE_QSORT() in lib/ and libcli/Andrew Tridgell2010-02-141-1/+2
|
* s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb codeAndrew Tridgell2010-02-141-1/+3
|
* use ZERO_STRUCTVolker Lendecke2010-02-131-1/+2
|
* Use ZERO_STRUCTPVolker Lendecke2010-02-131-1/+1
|
* s3: Fix a typoVolker Lendecke2010-02-131-1/+1
|
* util: added TYPESAFE_QSORT() macroAndrew Tridgell2010-02-131-0/+38
| | | | | This makes it much harder to get the type of a qsort comparison function wrong.
* s3: Add tdb_data_equalVolker Lendecke2010-02-122-0/+9
|
* util: added file_compare() utility functionAndrew Tridgell2010-02-112-0/+27
| | | | | | | file_compare() returns true if two files are the same. It is meant for small files. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* test:local added LOCAL-DLINKLIST testsuiteAndrew Tridgell2010-02-101-0/+130
| | | | (cherry picked from commit 95a5bee2c30a67a35604b0456ab7836f6dc67702)
* util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1)Andrew Tridgell2010-02-101-59/+111
| | | | | | | | | | | | | | This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros).
* Temporary changes to dlinklist to keep the implementation static whilstJeremy Allison2010-02-101-0/+16
| | | | | | | uses of (list)->prev are moved over to DLIST_PREV. This will be replaced when the final (new) version of the dlinklist.h header is added. Jeremy.
* s4:UID wrapper - Fix includesMatthias Dieter Wallnöfer2010-02-052-1/+19
| | | | | | | The includes of the UID wrapper headers werent't really efficient according to metze's post on the technical mailing list (http://lists.samba.org/archive/samba-technical/2010-February/069165.html). To achieve this move the "uid_wrapper.h" includes into "lib/util/unix_privs.c", "lib/util/util.c", "ntvfs/posix/pvfs_acl.c" and "ntvfs/unixuid/vfs_unixuid.c".
* Change uint_t to unsigned int in lib/utilMatt Kraai2010-02-024-6/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>