summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r23673: Check for integer wrap on incoming data.Jeremy Allison1-0/+6
Jeremy. (This used to be commit 77a46c7aee2ad4c402527cf78e5ae70a792d65d4)
2007-10-10r23669: Move a variable into the only block where it is used.Michael Adam1-1/+1
(This used to be commit 82be4137b7bba6a9a433ec011e7f47587935ae61)
2007-10-10r23668: When creating a new string value, win2k regedit deliversMichael Adam1-8/+22
one byte of data despite characters being two-byte. This modifies registry_pull_value, to change the data to the correct two-byte version of the empty string, (as delivered by winxp), when only one byte of data is received. Michael (This used to be commit a4c2b20296d6853cd1578601f17330cde75c4038)
2007-10-10r23665: Remove two unneeded global variablesVolker Lendecke1-13/+6
(This used to be commit 51a3933b3d367e3693daa6842f5a286328f4fd39)
2007-10-10r23662: According to simo, check_dos_char is neededVolker Lendecke2-1/+52
(This used to be commit c195eccefea69c17169c350a13bbfe845fc6fc44)
2007-10-10r23660: Anybody know what check_dos_char() was used for? It wasn't called atVolker Lendecke2-52/+1
all, so it's gone. With it 8k bss went away. (This used to be commit 7e9a4c39a5ce620f8eac74d0ae4dd80b96c81aca)
2007-10-10r23659: file_pload is not used outside of util_file.cVolker Lendecke1-1/+1
(This used to be commit 3ec43e18a4ffc46700de484251ea0bb2a18cde78)
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-10r23641: Put check for forbidden values in smbconf into a function.Michael Adam1-0/+22
(This will be used in a next step to prevent storing these values in reg_smbconf.c.) Michael (This used to be commit 00be68a8416405e12a27186506f9eb15bca055b3)
2007-10-10r23639: Eliminate trailing whitespaces in the new tdb_validate functions...Michael Adam1-8/+7
Michael (This used to be commit d4accdbb5285216d532f57f545a846734a2fe774)
2007-10-10r23610: Move some winbindd_cache specific flags and actionsMichael Adam1-7/+1
back to winbindd_cache.c. The generic mechanism should open the cache tdb readonly and with default flags. Michael (This used to be commit 062d8c61294a1e9f8588fa8af31954dd286c7bde)
2007-10-10r23600: First step in abstracting the winbindd cache validationMichael Adam1-0/+203
code into a generic tdb validation code. In lib/util_tdb.c for a start. Michael (This used to be commit 527edfa0cbcb233218ebabc395666d1d7228ee37)
2007-10-10r23595: One pstring a day...Volker Lendecke1-7/+19
(This used to be commit 669eff902a20f3023360918ede6672d37b1f7d44)
2007-10-10r23594: Fix parsing of local pids if cluster support is compiled in but noVolker Lendecke1-0/+4
cluster is used (This used to be commit 6beaa87da938f2a530939714b732fa769a28a008)
2007-10-10r23590: Fix realloc leak on failure case from Jim Meyering <jim@meyering.net>.Jeremy Allison1-1/+5
Jeremy. (This used to be commit d7b39e4534d85c84e8b24668ab7d7a93d5647c23)
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-10r23572: Ensure we obey Unicode consortium restrictions. CodeJeremy Allison1-15/+22
based on patch from MORIYAMA Masayuki <moriyama@miraclelinux.com>. Jeremy. (This used to be commit 0f10d2ed312115998d5ce1dc88a8d9207c9e4959)
2007-10-10r23569: Also dump fd_event in dump_event_list().Günther Deschner1-1/+10
Guenther (This used to be commit 27fdf995d13611ebc9e57895f886c184e9027c4d)
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-10r23562: Add dump_event_list() for debugging the event list.Günther Deschner1-0/+24
Guenther (This used to be commit 4e1e697ac48513719bd3a2152f17871bc00df796)
2007-10-10r23550: Add more UNIX error -> NT status mappings.Jeremy Allison1-0/+25
Jeremy. (This used to be commit 1e66a8340e7db9c42507d93d67ad33abadabd2a1)
2007-10-10r23528: Two changes to make the valgrind massif (heap profiler) output readable:Volker Lendecke1-1/+1
Remove the allocated inbuf/output. In async I/O we copy the buffers explicitly now, so NewInBuffer is called exactly once. This does not reduce memory footprint, but removes one of the larger chunks that clobber the rest of the massif output In getgroups_unix_user on Linux 2.6 we allocated 64k groups x 4 bytes per group x 2 (once in the routine itself and once in libc) = 512k just to throw it away directly again. This reduces it do a more typical limit of 32 groups per user. We certainly cope with overflow fine if 32 is not enough. Not 100% sure about this one, a DEVELOPER only thing? (This used to be commit 009af0909944e0f303c5d496b56fb65ca40a41d5)
2007-10-10r23518: Remove the silly assumption that string_replace requires a pstring.Volker Lendecke1-19/+44
Jeremy, I am always very confused about the different length arguments in convert_string and friends. Can you take a look at the change in string_replace and verify it's ok? Thanks! While at it, remove the pstring limit for strhasupper and strhaslower. (This used to be commit e6e5703658aeaeb0cca5d7281095e17553001d4b)
2007-10-10r23510: Tidy calls to smb_panic by removing trailing newlines. Print theJames Peach8-31/+28
failed expression in SMB_ASSERT. (This used to be commit 171dc060e2a576d724eed1ca65636bdafffd7713)
2007-10-10r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.cMichael Adam1-0/+7
(To be used in other place in subsequent commit.) Michael (This used to be commit 6fd71140499e30b8fd0f083301512db7b8c2f236)
2007-10-10r23485: This checkin consists mostly of refactorings in preparation of theMichael Adam6-602/+828
activation of global registry options in loadparm.c, mainly to extract functionality from net_conf.c to be made availabel elsewhere and to minimize linker dependencies. In detail: * move functions registry_push/pull_value from lib/util_reg.c to new file lib/util_reg_api.c * create a fake user token consisting of builtin administrators sid and se_disk_operators privilege by hand instead of using get_root_nt_token() to minimize linker deps for bin/net. + new function registry_create_admin_token() in new lib/util_reg_smbconf.c + move dup_nt_token from auth/token_util.c to new file lib/util_nttoken.c + adapt net_conf.c and Makefile.in accordingly. * split lib/profiles.c into two parts: new file lib/profiles_basic.c takes all the low level mask manipulation and format conversion functions (se_priv, privset, luid). the privs array is completely hidden from profiles.c by adding some access-functions. some mask-functions are not static anymore. Generally, SID- and LUID-related stuff that has more dependencies is kept in lib/profiles.c * Move initialization of regdb from net_conf.c into a function registry_init_regdb() in lib/util_reg_smbconf.c. Michael (This used to be commit efd3e2bfb756ac5c4df7984791c67e7ae20a582e)
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-10r23411: We were missing displayName and that was preventing usSimo Sorce1-0/+1
from successfully deleting an entry when "account" is the STRUCTURAL objectclass used for users and machines. "account" is used each time the user entry is in /etc/passwd and we have only the samba attributes in ldap, as well as for rfc2307(bis) standard based directories. (This used to be commit e6399f1aa1c98d2d6e700245bb95c84f7e173236)
2007-10-10r23410: Merge the core of the cluster code.Volker Lendecke8-12/+2135
I'm 100% certain I've forgotten to merge something, but the main code should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and messages_ctdbd.c. There should be no changes to the non-cluster case, it does survive make test on my laptop. It survives some very basic tests with ctdbd enables, I did not do the full test suite for clusters yet. Phew... Volker (This used to be commit 15553d6327a3aecdd2b0b94a3656d04bf4106323)
2007-10-10r23408: Remove a bogus commentVolker Lendecke1-1/+0
(This used to be commit 0442e680eeacb56852e200fdf6f78e4972ecad68)
2007-10-10r23393: Support BSD group semantics by making sure that the effective GID is ↵James Peach2-26/+102
always passed as the first GID when calling setgroups(2). (This used to be commit 6ebaf856c1d27f2fbfa0444a5c6c17c4331d2780)
2007-10-10r23371: Fix the misleading comment I added - it really *should*Jeremy Allison1-2/+2
say "locks chain and returned record", not "and returns record" Jeremy. (This used to be commit bf951e3d7f0310cc624abab11a7fb04c50770425)
2007-10-10r23370: Traverse in tdb wasn't consistently using theJeremy Allison1-8/+10
travlocks.lock_rw for lock read/write types, it was sometimes using it (tdb_next_lock) and sometimes explicitly using F_WRLCK instead. Change this to consistently use travlocks.lock_rw only. I'm pretty sure about this fix (else I woudn't be checking this in :-) but tridge and Volker please review. Jeremy. (This used to be commit d0b64567630ec02eb437aa713847bb23a8be8a60)
2007-10-10r23367: check the "use mmap" option for ldb tooAndrew Tridgell2-0/+10
(This used to be commit 15345bbc73b28d07c069fde33d3d4c1f21f107d3)
2007-10-10r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.Michael Adam2-0/+18
This fixes the build on a SuSE 6.1. :-) I guess this had been merely forgotten. But beware: The implementations of rep_pread and rep_pwrite are not thread safe. Michael (This used to be commit 5f5b93149216eb57872e4291336685b96948681e)
2007-10-10r23362: Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to mergeVolker Lendecke1-0/+3
this in your tree. (This used to be commit c0f40eb5846f617d9c421136b0e1ea593c8d8458)
2007-10-10r23357: timespec_current() was returning the wrong ns timeJeremy Allison1-1/+1
(multiplying tv_sec, not tv_usec). Jeremy. (This used to be commit bafd3b93f9ce74d7a8e2d6b36735f0977a22882c)
2007-10-10r23356: We missed to add the 'c' character to the list of valid ones forSimo Sorce1-1/+1
shell escaping. I hate this kind of bugs more than how Jeremy hates off by ones :( Simo. (This used to be commit 42d846ff870f93b7eaca316f04c12104330bbca8)
2007-10-10r23344: Better error messageVolker Lendecke1-2/+4
(This used to be commit 4042d2cdd2797e2f675ddeb0d288327ca55d9f5b)
2007-10-10r23343: Fix error returnVolker Lendecke1-1/+3
(This used to be commit 0014ee44b87a4a109c897ffec5f9c38eea442571)
2007-10-10r23337: fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticedStefan Metzmacher1-25/+2
it via a SIGBUS... I missed to remove the samba3 specifc code path to tdb_open_ex() when I synced lib/tdb/ with samba4. The explicit cast in on tdb_open_ex() dropped the compiler warning :-( metze (This used to be commit 815d2101715d6646fc15ac9f2853cf727cf7fcd8)
2007-10-10r23335: as not all source files include replace.h/config.hStefan Metzmacher1-1/+1
before unistd.h we need to pass -D_FILE_OFFSET_BITS=64 together with -Dpread=pread64 -Dpwrite=pwrite64 metze (This used to be commit 1716613cc7ab8dec739adadeadbf18937682cd5c)
2007-10-10r23313: Janitor for tridge:Volker Lendecke1-24/+13
we need to use tdb_wrap_open in both these backends to allow for multiple opens. This is done for notify.tdb. Otherwise we die when a 2nd share with notify is setup (This used to be commit 40dcccfcf91737ba658fd9e733a431001649d255)
2007-10-10r23309: sync lib/replace with SAMBA_4_0Stefan Metzmacher25-223/+347
metze (This used to be commit 20965d800fcac0c55853fb12cdd36b5836fc7e56)
2007-10-10r23307: move readahead stuff out of libreplace and make it samba3 specificStefan Metzmacher3-10/+0
as we can't replace this function in libreplace and we do the some stuff for other function in the same way. metze (This used to be commit 5e9b84326b4c65799e6fa6550de870d9a7ebba85)
2007-10-10r23305: merge from samba4:Stefan Metzmacher1-3/+3
fix large file support on HP-UX 11.00 and 11.11 metze (This used to be commit 85a07e24f0c9ea7062b7f8d02279e994bc1b5dc5)
2007-10-10r23226: Make the "debug prefix timestamp" output a bit more readable by makingVolker Lendecke1-1/+1
the debug level alway at least 2 digits (This used to be commit 94d2fd919c268efa3df2661d2ccb32e492c52f53)
2007-10-10r23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function isVolker Lendecke1-0/+92
useful even in binaries that don't link in libsmb (This used to be commit 52545d119277b42a46d13b5b031c85f47d96b84c)
2007-10-10r23220: Add traverse_read to dbwrapVolker Lendecke2-0/+42
(This used to be commit b38dc5ffdfe9fdc2879c57dc181815f06b4747fe)