summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
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)
2007-10-10r23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzrVolker Lendecke1-1/+1
branch, please check if it fulfils your needs. Two changes: The validation is not done inside the brlock.c traverse_fn, it's done as a separate routine. Secondly, this patch does not call the checker routines in smbcontrol directly but depends on a running smbd. (This used to be commit 7e39d77c1f90d9025cab08918385d140e20ca25b)
2007-10-10r23185: Try to fix the IRIX build, also add the forgotten file_id.c in .26Volker Lendecke1-1/+1
(This used to be commit 5360e6405b170137e558fd0696ebd6030e0f5deb)
2007-10-10r23184: Checkin for Tridge: Add a speed test to tdbtoolVolker Lendecke1-2/+52
(This used to be commit a343521439f68c76c9939f04eea96c6e6d6b01e4)
2007-10-10r23183: Check in a change made by Tridge:Volker Lendecke1-0/+102
This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker (This used to be commit 9b10dbbd5de8813fc15ebbb6be9b18010ffe8139)
2007-10-10r23171: Convert connections.tdb to dbwrapVolker Lendecke2-48/+60
(This used to be commit 80a1f43825063bbbda896175d99700ede5a4757a)
2007-10-10r23170: Add map_nt_error_from_tdb()Volker Lendecke2-2/+45
(This used to be commit 02beae81c8ecef7cfe300a29852d74813c9409bf)
2007-10-10r23161: Add TDB_VOLATILE as open_flag to activate the per-hashchain dead recordVolker Lendecke2-0/+5
optimization. (This used to be commit 945f73fa39ba6f2b637379ac20d52b4d0306d77f)
2007-10-10r23117: Factor out local messaging.Volker Lendecke2-399/+457
This removes message_block / message_unblock. I've talked to Jeremy and Günther, giving them my reasons why I believe they have no effect. Neither could come up with a counter-argument, so they go :-) (This used to be commit a925e0991ffbaea4a533bab3a5d61e5d367d46c8)
2007-10-10r23112: Trim down the message.c API slightly: The messages_pending_for_pid ↵Volker Lendecke1-56/+41
is now replaced by MSG_FLAG_LOWPRIORITY or'ed into the msg_type. To enable this, changed the msg_type definitions to hexadecimal. This way we could theoretically add the MSG_FLAG_NODUPLICATES again, but I would rather not do this, because that one is racy and can't be guaranteed at all. (This used to be commit 3f5eb8a9600839a9f9c44c553f0bda6df22b30b0)
2007-10-10r23109: Redo the change from r22772 I accidentially undid in r23108.Michael Adam1-0/+4
Michael (This used to be commit 18a7e739ea5d19b2e220641e19662e2c263d281a)
2007-10-10r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.Michael Adam1-5/+6
Fixing build of ldb for instance on some systems without dlfcn.h. (This used to be commit 5a06726e6873accd255d584e2c18e62dfcac108d)
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-10r23095: Support systems that have their PAM headers in /usr/include/pam.James Peach1-0/+4
(This used to be commit f1e8de4b576b3954d456cb64c02417908bab8da4)
2007-10-10r23077: Minor cleanupVolker Lendecke1-4/+0
(This used to be commit 72ed8388252bed07627b3a4636744dc8acf1c98b)
2007-10-10r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2-331/+267
doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker (This used to be commit eaefd00563173dfabb7716c5695ac0a2f7139bb6)
2007-10-10r23041: Remainder of fix for 4630: fix special case of unix_to_nt_time() forJim McDonough1-2/+10
TIME_T_MAX, and also display of it in http_timestring() (This used to be commit 2553b6a56d20ef6273001ae3b090e156e676592c)
2007-10-10r23025: Some logic simplificationsVolker Lendecke1-29/+27
(This used to be commit d3f16722b2c3c68b03e55b5100d979921c3f284d)