summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-01-01Remove two pointless globalsVolker Lendecke2-13/+12
2008-12-31Fix all warnings in source3 with gcc4.3.Jeremy Allison1-4/+30
Jeremy.
2008-12-31Disable the use of splice(2)Volker Lendecke1-1/+1
On a debian lenny installation with a kernel that calls itself 2.6.28, I could repeatably block smbd using splice. According to the output of netstat, the recvq of the TCP connection was full and at the same time according to strace smbd was stuck in a splice syscall trying to read from that TCP connection. We can not protect ourselves from this condition, as nobody will ever notify us that something is broken. So sadly we can't use splice yet at all. Maybe in 2.6.29...
2008-12-31Try to fix recvfile using splice on LinuxVolker Lendecke1-21/+36
According to the splice(2) manpage, one of the file descriptors *must* be a pipe. With this patch I could successfully run splice(2) on a debian lenny installation. Jeremy, please check!
2008-12-31Rename parent_dirname_talloc() to parent_dirname()Volker Lendecke1-2/+2
2008-12-31Remove unused function parent_dirnameVolker Lendecke1-13/+0
2008-12-31Make use of TALLOC_MEMDUP in parent_dirname_talloc()Volker Lendecke1-2/+1
2008-12-31Remove unused function get_numlist()Volker Lendecke1-51/+0
2008-12-30s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADDStefan Metzmacher1-7/+19
This means we correctly pass IPv6 addresses too. (CTDB_CONTROL_TCP_CLIENT was IPv4 only) metze
2008-12-29Add code to test write_data_iov a bitVolker Lendecke1-0/+11
2008-12-29Make write_data use write_data_iovVolker Lendecke1-24/+24
2008-12-29Add write_data_iovVolker Lendecke1-0/+69
2008-12-29Add sys_writevVolker Lendecke1-0/+14
2008-12-29s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()Stefan Metzmacher1-2/+2
All callers expect 0 an success and -1 on error. metze
2008-12-28Make sure share_info.tdb is open before attempting to delete an entrySteven Danneman1-2/+6
2008-12-23Fix use of "time offset" parameter, and add test to make sure I don't break ↵Jelmer Vernooij1-2/+0
it again :-)
2008-12-19Move some bytes from data to text, make use of the ARRAY_SIZE macroVolker Lendecke1-2/+2
Probably pointless, but it doesn't add complexity and it is fun to see bss and data shrink :-)
2008-12-15s3: Use DEBUGADD instead of DEBUG to avoid printing the headerDan Sledz1-2/+3
2008-12-14Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke2-83/+119
This involves changing all our clients, that's why it's so large.
2008-12-14Move 128 bytes from the data to the text segmentVolker Lendecke1-1/+1
2008-12-14Remove a pointless static variableVolker Lendecke1-1/+1
2008-12-09s3: Refactor getting sec_info from a security_descriptor into separate functionTim Prouty1-0/+27
2008-12-08Simplify async programming a bit with helper routinesVolker Lendecke2-10/+25
Introduce async_req_is_error() and async_req_simple_recv()
2008-12-08Streamline the async_sock API a bitVolker Lendecke1-33/+36
2008-12-05Fix logging to syslogDan Sledz1-1/+1
2008-12-05Fix bug #5928 - Option --version in testparm does not work.Tomasz Krasuski1-1/+1
2008-12-05s3-samr: fix SAMR_FIELD_PASSWORD callers.Günther Deschner1-1/+1
Guenther
2008-12-03s3: Change sockaddr util function names for consistencyTim Prouty2-11/+11
Also eliminates name conflicts with OneFS system libraries
2008-11-28Move cli_trans_oob to lib/util.cVolker Lendecke1-0/+19
Rename it to trans_oob, it will be used in the server routines.
2008-11-15Attempt to fix the buildVolker Lendecke1-1/+1
I have no idea how this could have happened. Probably done a make and make test in a different tree than the one I have done the push from. Sorry. Volker
2008-11-14Make memcache_add_talloc NULL out the source pointerVolker Lendecke2-3/+13
This is an orthogonality measure to make clear this pointer now belongs to the cache. (cherry picked from commit e6080c6e87d6fe3995b121a772bf3f6343fa666f)
2008-11-14Actually finish memcache_add_tallocVolker Lendecke1-1/+36
This fixes a memleak found by Martin Zielinski <mz@seh.de>. Thanks for looking closely! Volker (cherry picked from commit a31a84a078100819809e6d40dbc3df207a50a0b2)
2008-11-14Rename some variables in getpwnam_alloc() for clarityVolker Lendecke1-11/+12
2008-11-14sys_pwnam doesn't return talloced memory, so don't mix up the returned struct.Volker Lendecke1-4/+1
(cherry picked from commit eb99923991960e53bd150ac8f1d818cb746101b4)
2008-11-08Fix a subtle logic bug in the adaption of se_create_child_secdesc(), pass ↵Jeremy Allison1-0/+3
RAW-ACL inheritance tests. Only access masks for SD get/set left to fix. Jeremy.
2008-11-06If we didn't inherit any ACE's the ACE pointer should be NULL.Jeremy Allison1-4/+6
Jeremy.
2008-11-06Make us clean under valgrind --leak-check=full by using ↵Jeremy Allison3-30/+4
talloc_autofree_context() instead of NULL. Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should be deleted when their parent context is deleted, so freeing them at some arbitrary point later will be a double-free. Jeremy.
2008-11-06Add wrapper str_list_make_v3() to replace the old S3 behavior ofJeremy Allison2-1/+17
str_list_make(). From Dan Sledz <dan.sledz@isilon.com>: In samba 3.2 passing NULL or an empty string returned NULL. In master, it now returns a list of length 1 with the first string set to NULL (an empty list). Jeremy.
2008-11-06Start factoring out the inheritance differences.Jeremy Allison1-2/+1
Jeremy.
2008-11-03Pass all the non-inherited S4 RAW-ACL tests.Jeremy Allison1-0/+7
Jeremy.
2008-11-03s3: fix a few "shadows a global declaration" warningsTim Prouty1-4/+4
2008-11-01Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij2-14/+14
2008-11-01Merge branch 'master' of /home/jelmer/samba3Jelmer Vernooij6-168/+14
Conflicts: lib/replace/README lib/replace/libreplace.m4 lib/replace/replace.c source3/include/proto.h source3/lib/system.c
2008-11-01Use dup2() replacement from libreplace.Jelmer Vernooij3-14/+4
2008-11-01Remove sys_dl*() - stubs are already provided by libreplace.Jelmer Vernooij2-48/+8
2008-11-01Remove sys_chroot() - libreplace already provides an alternative.Jelmer Vernooij1-18/+0
2008-11-01Move sys_realpath() to libreplace.Jelmer Vernooij1-15/+0
2008-11-01Move sys_lchown() to libreplace.Jelmer Vernooij1-19/+0
2008-11-01Move sys_symlink() to libreplace.Jelmer Vernooij1-14/+0
2008-11-01Move sys_readlink() to libreplace.Jelmer Vernooij1-14/+0