summaryrefslogtreecommitdiff
path: root/lib/util/util.c
AgeCommit message (Collapse)AuthorFilesLines
2011-05-08Improve debug messages when creating socket directoriesAndrew Bartlett1-1/+2
This makes clear what the permissions error and directory name actually is Andrew Bartlett
2011-04-13lib: Move next_token next to next_token_tallocVolker Lendecke1-0/+46
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-01-20lib/util: add anonymous_shared_free()Stefan Metzmacher1-2/+39
metze
2011-01-20lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/Stefan Metzmacher1-1/+1
metze
2011-01-20lib/util: fix rounding to page size in allocate_anonymous_shared()Stefan Metzmacher1-1/+5
metze
2010-10-24Add dump_data_cb()Volker Lendecke1-21/+40
2010-10-24Add print_asc_cb()Volker Lendecke1-3/+21
2010-09-17lib/util: usec_time_diff takes arguments the other way round than TvalDiff didBjörn Jacke1-1/+1
2010-09-16s3/s4: merge msleep and smb_msleepBjörn Jacke1-7/+42
the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
2010-09-09lib/util: remove some unused_result warnings.Günther Deschner1-2/+7
Guenther
2010-09-04util: added samba_start_debugger()Andrew Tridgell1-0/+14
This developer function is useful for debugging unusual error conditions
2010-03-22lib/util: add allocate_anonymous_shared()Stefan Metzmacher1-0/+28
metze
2010-02-22Spelling fixes for libutilBrad Hards1-1/+1
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-05s4:UID wrapper - Fix includesMatthias Dieter Wallnöfer1-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".
2009-11-02lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.Andrew Bartlett1-40/+0
Andrew Bartlett
2009-10-01util: strhex_to_str() fixed to handle '0x' correctlyKamen Mazdrashki1-6/+6
2009-10-01util: fixed compile time "discards qualifiers" warningKamen Mazdrashki1-3/+3
2009-08-05make the UID_WRAPPER skip checks at runtimeAndrew Tridgell1-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
2009-08-05added a uid_wrapper libraryAndrew Tridgell1-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
2009-07-25No explicit initialization necessary for a zero blobVolker Lendecke1-3/+1
2009-06-10lib-util: move set_blocking() call into own file.Günther Deschner1-31/+0
Guenther
2009-03-03lib/util: remove samba specific talloc_get_type_abort()Stefan Metzmacher1-15/+0
metze
2009-03-01Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.Jelmer Vernooij1-0/+100
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke1-15/+11
2009-02-13Fix Coverity ID 707 (RESOURCE_LEAK)Volker Lendecke1-0/+1
2008-11-16lib/util: hex_encode_talloc(): fix error path and set talloc nameStefan Metzmacher1-0/+4
metze
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij1-1/+0
remove some unused functions.
2008-10-19Move more functions out of util_str.c into the shared util.c.Jelmer Vernooij1-0/+278
2008-10-18Use shared util.c.Jelmer Vernooij1-107/+58
2008-10-18Add extra argument free_on_fail to realloc_array() in Samba 4, as used by ↵Jelmer Vernooij1-2/+4
Samba 3.
2008-10-11Move lib/util from source4 to top-level libutil.Jelmer Vernooij1-0/+608
Conflicts: source4/Makefile