summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
AgeCommit message (Collapse)AuthorFilesLines
2008-05-28Fix Bug #5285. (libcap header mismatch)Günther Deschner1-0/+5
Can someone with gpfs available test this ? The only codepath using this function is the modules/gpfs.c module. The fix resolves at least the build issues Samba has with recent kernel / libcap versions by using the portable cap_get_proc()/cap_set_proc() interface (instead of using capget/capset). Guenther (This used to be commit 177955141247a4eb56ba0d82dc1add7f52175c40)
2008-01-20Some systems do not have XATTR_ definedVolker Lendecke1-5/+0
(This used to be commit 2cac1d3919a96c480f34c93d8b9b07782d46ed23)
2007-12-09Many systems don't have sa_len as part of struct sockaddr.Jeremy Allison1-1/+1
Revert 5c347cb46d85d04bbba7c99dca7ff9628f977d84 "Choose a better default for sockaddr length.". Jeremy. (This used to be commit 677ac6adc38b0747f825ee597e0502277a8f74b1)
2007-12-09Choose a better default for sockaddr length.James Peach1-1/+1
(This used to be commit 5c347cb46d85d04bbba7c99dca7ff9628f977d84)
2007-12-09Fix connect(2) callers to use correct sockaddr size.James Peach1-0/+18
Some systems (eg Mac OSX 10.5) require the length passed to match the socket address family. This introduces sys_connect() that does the right thing, and replaces all uses oc connect(2) with sys_connect(). Note that there are some LGPL callers that still call connect(2) directly. (This used to be commit e1bfdc17c49da582cdf907e260301ab1946b2ed3)
2007-12-07Don't build rpctorture anymore - not maintained. Just remove.Jeremy Allison1-1/+0
Remove all vestiges of pstring (except for smbctool as noted in previous commit). Jeremy (This used to be commit 4c32a22ac50ada3275d2ffba3c1aa08bee7d1549)
2007-12-03Remove workaround for broken capabilites.h from lib/system.c - now in ↵Michael Adam1-18/+0
lib/replace. Michael (This used to be commit a3fbb5323222334c86c0dc360df8c6a39039bbe6)
2007-11-261. lib/system.c (xattr code for Solaris) could not beTomoki AONO1-3/+6
built against c90 compilers. (declaration after statement.) Sample patch attached. (This used to be commit 102a247df99967f25dbaf40c9be2d48a8e15c64c)
2007-11-10Always define PATH_MAX. Makes code simpler (removesJeremy Allison1-4/+0
a bunch of #defines). Remove pstring from msdfs.c. Jeremy. (This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
2007-11-09remove faked_create_user() BUILD_FARM hack as we have nss_wrapper nowStefan Metzmacher1-77/+0
metze (This used to be commit fc98c1904865608509a01911afa46de74873ef41)
2007-11-02Fix Solaris by ensuring we use the IPv4 or IPv6 lengthJeremy Allison1-0/+24
in any getnameinfo calls. Jeremy (This used to be commit 4d7badb0c44f287034f58d9a412e662c0fbecdc9)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-2/+2
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-15Move to protocol independent code in most of lib/util_sock.cJeremy Allison1-43/+0
We don't use gethostbyname any more except in one case where we're looking for host aliases (I don't know how to do that with getaddrinfo yet). New function should be getaddrinfo(). Next step will be fixing lib/access.c, and then changing libsmb/namequery.c to cope with IPv6 address returns. Jeremy. (This used to be commit 4a56b697b6adcf095e25895c4a9ba3192ed34124)
2007-10-10r25505: Add a replacement (IPv4 only) implementation of getaddrinfo/freeaddrinfoJeremy Allison1-4/+4
under the 2 clause *BSD license for future use in IPv6 code. Original code was from PostgreSQL and I've maintained their license even though I've rewritten large parts of it (I probably should donate this back to them). Jeremy. (This used to be commit 760d993340a966269d71acfb7a6b5e4d3776ac5d)
2007-10-10r25172: Remove commented out code we will never enable.Jeremy Allison1-172/+0
Jeremy. (This used to be commit 6032fbc358c5015b2b6a23e13d978bf41ef9e5f3)
2007-10-10r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison1-0/+4
the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy. (This used to be commit 7f0db75fb0f24873577dcb758a2ecee74fdc4297)
2007-10-10r24547: Fix #4897, patch from David S. Collier-Brown <davecb@spamcop.net> -- ↵Volker Lendecke1-6/+6
Thanks! (This used to be commit 4a90264d173ef5a870f2a44554c3bb9e738e98fb)
2007-10-10r24304: patch from Bjoern JAcke <bj@SerNet.DE>:Stefan Metzmacher1-0/+242
attached patches add EA support for Solaris. If no one disagrees, can someone check this in please? metze (This used to be commit 81e5afc363e1f0bdc4768c0f5c696f4152fe5b44)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23658: One pstring a day....Volker Lendecke1-16/+39
This one was particularly tasty, it was a static one. So 1k less footprint per process. (This used to be commit 83865e32889e2d29086ae9d9701713fc74b09175)
2007-10-10r23576: Fix some confusion between HAVE_BROKEN_GETGROUPS and USE_BSD_SETGROUPS.James Peach1-4/+4
(This used to be commit 8f6cf4b8c2568c737fa31494b844ae021a42a4fc)
2007-10-10r23566: Fix the sys_bsd_setgroups function. The actual workaround was inactive.Michael Adam1-3/+1
Michael (This used to be commit 4b5d9b2ba773e6ce57c38e3c0d5af72ad5a98b51)
2007-10-10r23475: Fix the prototype for sys_broken_setgroups and log *BSD group listJames Peach1-2/+2
truncation a bit more verbosely. (This used to be commit e3ea997289f9f2613c304c016b42b2d35af48c84)
2007-10-10r23470: Fix supplementary group list truncation for *BSD. We need to passJames Peach1-2/+8
the correct group list length and only truncate to NGROUPS_MAX if it is too long. (This used to be commit 07f562be7a64a2ded7ec0e6f5910447dc5b8b85f)
2007-10-10r23393: Support BSD group semantics by making sure that the effective GID is ↵James Peach1-25/+101
always passed as the first GID when calling setgroups(2). (This used to be commit 6ebaf856c1d27f2fbfa0444a5c6c17c4331d2780)
2007-10-10r23105: Add lchown to the vfs layer. We need this in the POSIX code.Jeremy Allison1-0/+19
Jeremy. (This used to be commit 932523cbb508db869b726768e86bfa8e248f768b)
2007-10-10r21725: Fix for memalign used without test guards. WasJeremy Allison1-7/+22
breaking the build on *BSD's. Tested by Herb. Jeremy. (This used to be commit 4816af5ce9070385b292f666779a24057b39e457)
2007-10-10r21526: Fix stray character in sys_memalign() that is onlyGerald Carter1-1/+1
is the case where we don't have memalign() or posix_memalign(). (This used to be commit 1635bac80011d15e3ed30b6d43b6e22b2ce2a000)
2007-10-10r21525: Go ahead and checkin the mlock() & memalign() fixes soGerald Carter1-0/+21
others don't get stuck with the winbindd hang. Still waiting on additional confirmation from Guenther that this fixes thes issues he was observing as well. But it's been running in my local tree for a day without problems. (This used to be commit 0d2b80c6c4a744b05a0efdec352cddccc430e0c4)
2007-10-10r19647: Add some GPFS support in a vfs mod. Also adds the kernel flock op toJim McDonough1-0/+25
the vfs layer, since gpfs supports it. Thanks to Volker, Christian, Mathias, Chetan, and Peter. (This used to be commit 0620658890fa9c68a9848538728023192319c81a)
2007-10-10r19241: compile xattr wrappers on mac os 10Stefan Metzmacher1-0/+52
patch from Bjoern Jacke and it fixes bug 3698 metze (This used to be commit e54302b9163cfe726c30a8efdc779250e076d493)
2007-10-10r19102: fix typo, thanks derrell!Stefan Metzmacher1-1/+1
metze (This used to be commit 0a516c3026114a32092f4a62fcbbfc4c410c0dea)
2007-10-10r19101: add sys_recv() wrapperStefan Metzmacher1-1/+14
metze (This used to be commit 2f146ec68344c4bc11e1a9d174bdf548e1a22d5a)
2007-10-10r17630: Looks like getpeerid() is a system function onJeremy Allison1-1/+1
FreeBSD. Change to sys_getpeerid(). Thanks to vl for pointing this out. Jeremy. (This used to be commit dd0069cfcabb25dc7dc0d336696a5f2580abb5a1)
2007-10-10r17610: Added the ability for firefox to drive the winbinddJeremy Allison1-0/+25
ntlm_auth module to allow it to use winbindd cached credentials.The credentials are currently only stored in a krb5 MIT environment - we need to add an option to winbindd to allow passwords to be stored even in an NTLM-only environment. Patch from Robert O'Callahan, modified with some fixes by me. Jeremy. (This used to be commit ae7cc298a113d8984557684bd6ad216cbb27cff3)
2007-10-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison1-0/+78
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-basedJames Peach1-0/+30
HSM is interested in. Tested on both IRIX and SLES9. (This used to be commit 514a767c57f8194547e5b708ad2573ab9a0719c6)
2007-10-10r14600: Refactor capability interface from being IRIX-specific to using onlyJames Peach1-54/+68
the POSIX interface. Note that this removes support for inherited capabilities. This wasn't used, and probably should not be. (This used to be commit 763f4c01488a96aec000c18bca313da37ed1df1b)
2007-10-10r13566: Fix EA support for AIX.Günther Deschner1-0/+24
Patch from Bjoern Jacke <bjacke-at-sernet-dot-de>. Guenther (This used to be commit 69fb189a6b9947069afebb15d6ee6f2f20d15171)
2007-10-10r11845: Removed error code list as it isn't correct for Linux.Jeremy Allison1-8/+0
Jeremy. (This used to be commit bea6fa293e2c1ee85ae72dcee00db13cb1fe5bb1)
2007-10-10r11841: Fix #3262 from Timur Bakeyev to improve reporting on FreeBSD DOSJeremy Allison1-33/+41
attribute errors. Jeremy. (This used to be commit 8f2e472fa35098b1be16083ce9b5c06fdf5dbcd1)
2007-10-10r11732: Remember to return early if -1 returned from *BSD EA call.Jeremy Allison1-0/+12
Pointed out by timur@com.bat.ru. Jeremy. (This used to be commit 081e458801b626d6f9e58ba16a25c1b99b83eb55)
2007-10-10r11383: Patch from Alex Masterov <alex@infobit.ru> to fixJeremy Allison1-3/+83
XATTR calls on *BSD systems (bug #3218). Jeremy. (This used to be commit 3d8faf42e854a720aca5c2e0a4682c85a3dfd365)
2007-10-10r9545: (Hopefully the last) fixes for DIR -> SMB_STRUCT_DIR.Jeremy Allison1-2/+2
Jeremy. (This used to be commit b242f278601e1a23c9116009482e802326d418f7)
2007-10-10r9483: Changed DIR to SMB_STRUCT_DIR because of the amazing stupidity of a ↵Jeremy Allison1-6/+6
UNIX vendor not understanding abstract data types :-(. Jeremy. (This used to be commit be5b4e2fa3ed30b0ff01b47d2354e5f782a12e25)
2007-10-10r8704: Patch from Timur Bakeyev <timur@com.bat.ru> to fix typoJeremy Allison1-1/+1
calling wrong aio_fsync function. Bugid #2909. Jeremy. (This used to be commit 6ea3aadd6630a62d52a9a6e09995b57f55e60d41)
2007-10-10r7963: Add aio support to 3.0.Jeremy Allison1-0/+158
Jeremy. (This used to be commit 1de27da47051af08790317f5b48b02719d6b9934)
2007-10-10r6681: updating copyrights (see bug 2546)Gerald Carter1-1/+2
(This used to be commit 39288aa5660893b69af5e720d57aa104f3db4490)
2007-10-10r6253: Add FreeBSD EA API support. Bug #2576 - patch donated by Timur ↵Jeremy Allison1-9/+183
Bakeyev <timur@com.bat.ru> Jeremy. (This used to be commit 059a2e30c94f7bbcf01c1f4c5539f0b0f5ab0e09)