summaryrefslogtreecommitdiffstats
path: root/lib/util/util.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/util: Allow calloc use in util.c, too.Jelmer Vernooij2012-03-241-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 18:50:32 CET 2012 on sn-devel-104
* lib/util: Move calloc_array and memalign_array to top-level libutil.Jelmer Vernooij2012-03-241-0/+28
|
* lib/util: only change umask during mkdir()Stefan Metzmacher2012-03-141-7/+4
| | | | metze
* lib/util: cope with races between lstat and mkdir in directory_create_or_exist()Stefan Metzmacher2012-03-141-2/+8
| | | | metze
* lib/util: use a helper variable in directory_create_or_exist()Stefan Metzmacher2012-03-141-2/+5
| | | | metze
* lib/util: do an early return on error directory_create_or_exist()Stefan Metzmacher2012-03-141-10/+10
| | | | metze
* lib/util: remove unneeded else branch in directory_create_or_exist()Stefan Metzmacher2012-03-141-21/+24
| | | | metze
* lib/util: don't start DEBUG output with 'error 'Stefan Metzmacher2012-03-141-1/+1
| | | | | | This confused the subunit code. metze
* lib/util: Add hex_encode_bufVolker Lendecke2012-02-061-9/+16
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 6 09:15:33 CET 2012 on sn-devel-104
* Introduce dump_data_fileVolker Lendecke2012-01-251-0/+11
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104
* Include uid_wrapper correctly.Andreas Schneider2011-10-271-9/+1
|
* lib/util: skip single hex digit at the end of the input sting - fix ↵Michael Adam2011-10-181-1/+2
| | | | | | | | | | | potential segfault The second of two digits was read without checking for the length of the input string. For a non-zero-terminated input string, this might have caused a segfault. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Oct 18 22:32:59 CEST 2011 on sn-devel-104
* lib/util: fix function header comment to strhex_to_str()Michael Adam2011-10-181-9/+8
| | | | The description did not match the function's behaviour.
* lib/util: untangle assignent from check in strhex_to_str()Michael Adam2011-10-181-2/+6
|
* util: add function to extend anonymous shared memorySimo Sorce2011-08-141-0/+64
|
* lib-util: Make create_unlink_tmp argument optionalSimo Sorce2011-08-101-1/+6
| | | | | | Use tmpdir() if no dir is provided. Signed-off-by: Andreas Schneider <asn@samba.org>
* lib-util: Make useful function a common utility.Simo Sorce2011-08-101-0/+32
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* Improve debug messages when creating socket directoriesAndrew Bartlett2011-05-081-1/+2
| | | | | | This makes clear what the permissions error and directory name actually is Andrew Bartlett
* lib: Move next_token next to next_token_tallocVolker Lendecke2011-04-131-0/+46
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* lib/util: add anonymous_shared_free()Stefan Metzmacher2011-01-201-2/+39
| | | | metze
* lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/Stefan Metzmacher2011-01-201-1/+1
| | | | metze
* lib/util: fix rounding to page size in allocate_anonymous_shared()Stefan Metzmacher2011-01-201-1/+5
| | | | metze
* Add dump_data_cb()Volker Lendecke2010-10-241-21/+40
|
* Add print_asc_cb()Volker Lendecke2010-10-241-3/+21
|
* lib/util: usec_time_diff takes arguments the other way round than TvalDiff didBjörn Jacke2010-09-171-1/+1
|
* s3/s4: merge msleep and smb_msleepBjörn Jacke2010-09-161-7/+42
| | | | | the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
* lib/util: remove some unused_result warnings.Günther Deschner2010-09-091-2/+7
| | | | Guenther
* util: added samba_start_debugger()Andrew Tridgell2010-09-041-0/+14
| | | | | This developer function is useful for debugging unusual error conditions
* lib/util: add allocate_anonymous_shared()Stefan Metzmacher2010-03-221-0/+28
| | | | metze
* Spelling fixes for libutilBrad Hards2010-02-221-1/+1
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4:UID wrapper - Fix includesMatthias Dieter Wallnöfer2010-02-051-0/+9
| | | | | | | 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".
* lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.Andrew Bartlett2009-11-021-40/+0
| | | | Andrew Bartlett
* util: strhex_to_str() fixed to handle '0x' correctlyKamen Mazdrashki2009-10-011-6/+6
|
* util: fixed compile time "discards qualifiers" warningKamen Mazdrashki2009-10-011-3/+3
|
* make the UID_WRAPPER skip checks at runtimeAndrew Tridgell2009-08-051-4/+7
| | | | | | | This fixes two issues pointed out by Andrew. It adds a runtime uwrap_enabled() call that wraps the skips needed for uid emulation. It also makes the skip in the directory_create_or_exist() function only change the uid checking code, not the permissions code
* added a uid_wrapper libraryAndrew Tridgell2009-08-051-0/+2
| | | | | | | | | | | | | | | | | | | | This library intercepts seteuid and related calls, and simulates them in a manner similar to the nss_wrapper and socket_wrapper libraries. This allows us to enable the vfs_unixuid NTVFS module in the build farm, which means we are more likely to catch errors in the token manipulation. The simulation is not complete, but it is enough for Samba4 for now. The major areas of incompleteness are: - no emulation of setreuid, setresuid or saved uids. These would be needed for use in Samba3 - no emulation of ruid changing. That would also be needed for Samba3 - no attempt to emulate file ownership changing, so code that (for example) tests whether st.st_uid matches geteuid() needs special handling
* No explicit initialization necessary for a zero blobVolker Lendecke2009-07-251-3/+1
|
* lib-util: move set_blocking() call into own file.Günther Deschner2009-06-101-31/+0
| | | | Guenther
* lib/util: remove samba specific talloc_get_type_abort()Stefan Metzmacher2009-03-031-15/+0
| | | | metze
* Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.Jelmer Vernooij2009-03-011-0/+100
|
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-131-15/+11
|
* Fix Coverity ID 707 (RESOURCE_LEAK)Volker Lendecke2009-02-131-0/+1
|
* lib/util: hex_encode_talloc(): fix error path and set talloc nameStefan Metzmacher2008-11-161-0/+4
| | | | metze
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-1/+0
| | | | remove some unused functions.
* Move more functions out of util_str.c into the shared util.c.Jelmer Vernooij2008-10-191-0/+278
|
* Use shared util.c.Jelmer Vernooij2008-10-181-107/+58
|
* Add extra argument free_on_fail to realloc_array() in Samba 4, as used by ↵Jelmer Vernooij2008-10-181-2/+4
| | | | Samba 3.
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+608
Conflicts: source4/Makefile