Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-03-15 | lib/util: Cast mode_t result to unsigned int for GNU/Solaris build | Andrew Bartlett | 1 | -1/+1 | |
Reviewed-by: Jeremy Allison <jra@samba.org> | |||||
2013-03-06 | Make sure to set umask() before calling mkstemp(). | Andreas Schneider | 1 | -0/+3 | |
Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Wed Mar 6 01:16:34 CET 2013 on sn-devel-104 | |||||
2013-01-09 | util: Add a strict directory_create_or_exist function. | Andreas Schneider | 1 | -5/+44 | |
Reviewed-by: Andrew Bartlett <abartlet@samba.org> | |||||
2012-08-24 | lib/util: don't SMB_ASSERT() in process_exists_by_pid() | Stefan Metzmacher | 1 | -1/+3 | |
Just return false... metze | |||||
2012-06-29 | lib/util: fix fd leak in anonymous_shared_allocate() if MAP_ANON is not ↵ | Stefan Metzmacher | 1 | -1/+14 | |
available metze | |||||
2012-03-24 | lib/util: Allow calloc use in util.c, too. | Jelmer Vernooij | 1 | -0/+1 | |
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 18:50:32 CET 2012 on sn-devel-104 | |||||
2012-03-24 | lib/util: Move calloc_array and memalign_array to top-level libutil. | Jelmer Vernooij | 1 | -0/+28 | |
2012-03-14 | lib/util: only change umask during mkdir() | Stefan Metzmacher | 1 | -7/+4 | |
metze | |||||
2012-03-14 | lib/util: cope with races between lstat and mkdir in directory_create_or_exist() | Stefan Metzmacher | 1 | -2/+8 | |
metze | |||||
2012-03-14 | lib/util: use a helper variable in directory_create_or_exist() | Stefan Metzmacher | 1 | -2/+5 | |
metze | |||||
2012-03-14 | lib/util: do an early return on error directory_create_or_exist() | Stefan Metzmacher | 1 | -10/+10 | |
metze | |||||
2012-03-14 | lib/util: remove unneeded else branch in directory_create_or_exist() | Stefan Metzmacher | 1 | -21/+24 | |
metze | |||||
2012-03-14 | lib/util: don't start DEBUG output with 'error ' | Stefan Metzmacher | 1 | -1/+1 | |
This confused the subunit code. metze | |||||
2012-02-06 | lib/util: Add hex_encode_buf | Volker Lendecke | 1 | -9/+16 | |
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 6 09:15:33 CET 2012 on sn-devel-104 | |||||
2012-01-25 | Introduce dump_data_file | Volker Lendecke | 1 | -0/+11 | |
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104 | |||||
2011-10-27 | Include uid_wrapper correctly. | Andreas Schneider | 1 | -9/+1 | |
2011-10-18 | lib/util: skip single hex digit at the end of the input sting - fix ↵ | Michael Adam | 1 | -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 | |||||
2011-10-18 | lib/util: fix function header comment to strhex_to_str() | Michael Adam | 1 | -9/+8 | |
The description did not match the function's behaviour. | |||||
2011-10-18 | lib/util: untangle assignent from check in strhex_to_str() | Michael Adam | 1 | -2/+6 | |
2011-08-14 | util: add function to extend anonymous shared memory | Simo Sorce | 1 | -0/+64 | |
2011-08-10 | lib-util: Make create_unlink_tmp argument optional | Simo Sorce | 1 | -1/+6 | |
Use tmpdir() if no dir is provided. Signed-off-by: Andreas Schneider <asn@samba.org> | |||||
2011-08-10 | lib-util: Make useful function a common utility. | Simo Sorce | 1 | -0/+32 | |
Signed-off-by: Andreas Schneider <asn@samba.org> | |||||
2011-05-08 | Improve debug messages when creating socket directories | Andrew Bartlett | 1 | -1/+2 | |
This makes clear what the permissions error and directory name actually is Andrew Bartlett | |||||
2011-04-13 | lib: Move next_token next to next_token_talloc | Volker Lendecke | 1 | -0/+46 | |
Signed-off-by: Jeremy Allison <jra@samba.org> | |||||
2011-01-20 | lib/util: add anonymous_shared_free() | Stefan Metzmacher | 1 | -2/+39 | |
metze | |||||
2011-01-20 | lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/ | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2011-01-20 | lib/util: fix rounding to page size in allocate_anonymous_shared() | Stefan Metzmacher | 1 | -1/+5 | |
metze | |||||
2010-10-24 | Add dump_data_cb() | Volker Lendecke | 1 | -21/+40 | |
2010-10-24 | Add print_asc_cb() | Volker Lendecke | 1 | -3/+21 | |
2010-09-17 | lib/util: usec_time_diff takes arguments the other way round than TvalDiff did | Björn Jacke | 1 | -1/+1 | |
2010-09-16 | s3/s4: merge msleep and smb_msleep | Björn Jacke | 1 | -7/+42 | |
the merged variant is renamed to smb_msleep as some platforms already have a msleep function. | |||||
2010-09-09 | lib/util: remove some unused_result warnings. | Günther Deschner | 1 | -2/+7 | |
Guenther | |||||
2010-09-04 | util: added samba_start_debugger() | Andrew Tridgell | 1 | -0/+14 | |
This developer function is useful for debugging unusual error conditions | |||||
2010-03-22 | lib/util: add allocate_anonymous_shared() | Stefan Metzmacher | 1 | -0/+28 | |
metze | |||||
2010-02-22 | Spelling fixes for libutil | Brad Hards | 1 | -1/+1 | |
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | |||||
2010-02-05 | s4:UID wrapper - Fix includes | Matthias Dieter Wallnöfer | 1 | -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-02 | lib/util Use rfc1738.c from Squid for all our URL encode/decode needs. | Andrew Bartlett | 1 | -40/+0 | |
Andrew Bartlett | |||||
2009-10-01 | util: strhex_to_str() fixed to handle '0x' correctly | Kamen Mazdrashki | 1 | -6/+6 | |
2009-10-01 | util: fixed compile time "discards qualifiers" warning | Kamen Mazdrashki | 1 | -3/+3 | |
2009-08-05 | make the UID_WRAPPER skip checks at runtime | Andrew Tridgell | 1 | -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-05 | added a uid_wrapper library | Andrew Tridgell | 1 | -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-25 | No explicit initialization necessary for a zero blob | Volker Lendecke | 1 | -3/+1 | |
2009-06-10 | lib-util: move set_blocking() call into own file. | Günther Deschner | 1 | -31/+0 | |
Guenther | |||||
2009-03-03 | lib/util: remove samba specific talloc_get_type_abort() | Stefan Metzmacher | 1 | -15/+0 | |
metze | |||||
2009-03-01 | Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4. | Jelmer Vernooij | 1 | -0/+100 | |
2009-02-13 | Replace get_myname() with the talloc version from v3-3-test | Volker Lendecke | 1 | -15/+11 | |
2009-02-13 | Fix Coverity ID 707 (RESOURCE_LEAK) | Volker Lendecke | 1 | -0/+1 | |
2008-11-16 | lib/util: hex_encode_talloc(): fix error path and set talloc name | Stefan Metzmacher | 1 | -0/+4 | |
metze | |||||
2008-10-20 | Make sure prototypes are always included, make some functions static and | Jelmer Vernooij | 1 | -1/+0 | |
remove some unused functions. | |||||
2008-10-19 | Move more functions out of util_str.c into the shared util.c. | Jelmer Vernooij | 1 | -0/+278 | |