summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-08-24Second attempt at fix for bug 6529 - Offline files conflict with Vista and ↵Jeremy Allison1-4/+20
Office 2003. Confirmation from reporter that this fixes the issue in master on ext3/ext4. Back-ports to follow. Jeremy.
2009-08-24Use existing time_t rounding function, don't invent my own.Jeremy Allison1-1/+1
Jeremy.
2009-08-24Second part of fix for 6529 - Offline files conflict with Vista and Office 2003.Jeremy Allison1-0/+10
ext4 may be able to store ns timestamps, but the only API to *set* timestamps takes usec, not nsec. Round to usec on set requests. Jeremy.
2009-08-24make smbcontrol smbd ping work proper checking for arguments handle short ↵Olaf Flebbe1-6/+16
pid_t correctly
2009-08-24s3:lib: setup talloc log and abort functionsStefan Metzmacher1-0/+7
metze
2009-08-21Fix bug 6529 - Offline files conflict with Vista and Office 2003Jeremy Allison1-0/+11
On filesystems that can't store less than one second timestamps, round the incoming timestamp set requests so the client can't discover that a time set request has been truncated by the filesystem. Needs backporting to 3.4, 3.3, 3.2 and (even) 3.0. Jeremy
2009-08-16s3: Add talloc_dict.[ch]Volker Lendecke1-0/+148
2009-08-12s3:lib: map ECONNRESET to NT_STATUS_CONNECTION_RESETStefan Metzmacher1-0/+3
metze
2009-08-10Refactor the use of create_time and change time to goJeremy Allison1-2/+2
through functions. Will aid in making us pass RAW-SETFILEINFO. Jeremy.
2009-08-08Implement db_rbt_traverseVolker Lendecke1-4/+33
2009-08-07Fix some nonempty blank linesVolker Lendecke6-37/+36
2009-08-06s3/smbldap: Fix typo in debug message.Karolin Seeger1-1/+1
Karolin
2009-07-31Increase the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to ↵Yannick Bergeron1-1/+1
allow AIX to call sys_getgrouplist only once
2009-07-29s3:dbwrap: add dbwrap_trans_change_int32_atomic()Michael Adam1-0/+17
A transaction wrapper for dbwrap_change_int32_atomic(). Michael
2009-07-29s3:dbwrap: export logic of dbwrap_change_int32_atomic into an action functionMichael Adam1-6/+31
to prepare for adding a transaction wrapper to dbwrap_change_int32_atomic() Michael
2009-07-29s3:dbwrap: change dbwrap_change_int32_atomic() to take int32_t, not int32Michael Adam1-2/+2
Michael
2009-07-29s3:dbwrap: add dbwrap_trans_change_uint32_atomic()Michael Adam1-0/+17
A transaction wrapper for dbwrap_change_uint32_atomic(). Michael
2009-07-29s3:dbwrap: export logic of dbwrap_change_uint32_atomic into an action functionMichael Adam1-6/+31
to prepare for adding a transaction wrapper to dbwrap_change_uint32_atomic() Michael
2009-07-29s3:dbwrap: untangle assignment and check in dbwrap_change_int32_atomic()Michael Adam1-2/+2
Michael
2009-07-29s3:dbwrap: untangle assignemend and check in dbwrap_change_uint32_atomic()Michael Adam1-2/+2
Michael
2009-07-29s3:dbwrap: don't leak in dbwrap_change_int32_atomic().Michael Adam1-2/+3
Michael
2009-07-29s3:dbwrap: don't leak in dbwrap_change_uint32_atomic()Michael Adam1-2/+3
Michael
2009-07-29s3:dbwrap: change dbwrap_change_int32_atomic() to return NTSTATUS not int32.Michael Adam1-6/+7
Michael
2009-07-29s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t.Michael Adam1-5/+6
Michael
2009-07-28(Hopefully) fix the problem Kai reported withJeremy Allison1-5/+53
net ads leave and IPv6. Ensure all DC lookups prefer IPv4. Jeremy.
2009-07-25Use a switch statement in charset_name()Volker Lendecke1-8/+24
2009-07-25Fix some nonempty blank linesVolker Lendecke1-17/+17
2009-07-24Make the smbd VFS typesafeVolker Lendecke1-8/+0
2009-07-21s3:dbwrap: use the transaction wrapper in dbwrap_trans_store().Michael Adam1-26/+23
Now dbwrap_util.c contains only one call to each of transaction_start, transaction_commit and transaction_cancel. Michael
2009-07-21s3:dbwrap: use the transaction wrapper in dbwrap_trans_delete().Michael Adam1-28/+12
Michael
2009-07-17Fix a typo reading uninitialized memory. Caught by valgrind.Jeremy Allison1-3/+1
Jeremy.
2009-07-16Replace more long-lived contexts with talloc_autofree_context().Jeremy Allison1-1/+1
Jeremy.
2009-07-16Replace short-lived NULL talloc contexts with talloc_tos().Jeremy Allison3-22/+22
Jeremy.
2009-07-15s3:tldap: fix the build - a void function should not return a valueStefan Metzmacher1-3/+3
metze
2009-07-15s3:dbwrap: fix embarrassing typo :-)Michael Adam1-1/+1
Michael
2009-07-15s3:dbwrap_util: add my CMichael Adam1-0/+1
Michael
2009-07-15s3:dbwrap: add dbwrap_fetch_bystring_upper().Michael Adam1-0/+17
To fetch a key whose name is stored but not given in upper case. Michael
2009-07-15s3:dbwrap: add dbwrap_store_bystring_upper().Michael Adam1-0/+17
This stores a key under the uppercase version of the given keyname. Michael
2009-07-15s3:dbwrap: add dbwrap_delete_bystring_upper()Michael Adam1-0/+16
To delete a key whose name is not given in but stored in uppercase. Michael
2009-07-15s3:dbwrap: add a wrapper dbwrap_trans_do()Michael Adam1-0/+33
This function wraps the action() callback into a db transaction and the transaction is either committed or cancelled, depending on the return value of the action function. Michael
2009-07-15s3:lib: map ENOSYS to NT_STATUS_NOT_SUPPORTED instead of NT_STATUS_ACCESS_DENIEDStefan Metzmacher1-0/+1
Jeremy: please check and decide if we want to backport this. metze
2009-07-15Consolidate gencache also every 100 writes in a single processVolker Lendecke1-0/+14
2009-07-15Consolidate string and data_blob routines in gencacheVolker Lendecke1-138/+56
2009-07-15Make gencache more stableVolker Lendecke1-15/+268
This provides a compromise between stability and performance: gencache is a persistent database these days that for performance reasons can not use tdb transactions for all writes. This patch splits up gencache into gencache.tdb and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes to it don't use transactions. By default every 5 minutes and when a program exits, all entries from _notrans.tdb are transferred to gencache.tdb in one transaction.
2009-07-15Add tdb_data_cmpVolker Lendecke1-0/+19
2009-07-15Remove gencache_init/shutdownVolker Lendecke2-21/+1
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
2009-07-15Remove gencache_[un]lock_keyVolker Lendecke1-25/+0
2009-07-15TDB_CONTEXT -> "struct tdb_context"Volker Lendecke1-1/+1
2009-07-15Replace ASSERTs in gencache with "return false"Volker Lendecke1-12/+18
It's a bit strong to panic here I think.
2009-07-14s3: allow setting the TCP_QUICKACK socket optionBjörn Jacke1-0/+3