1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-11 17:58:16 +03:00

271 Commits

Author SHA1 Message Date
Jeremy Allison
b438cb0a85 r7640: Fix based on work from "Shlomi Yaakobovich" <Shlomi@exanet.com> to catch
loops in corrupted tdb files.
Jeremy.
2007-10-10 10:57:18 -05:00
Gerald Carter
9727d05241 r7139: trying to reduce the number of diffs between trunk and 3.0; changing version to 3.0.20pre1 2007-10-10 10:57:02 -05:00
Derrell Lipman
7b4d4f6109 r7025: 1 if not all data is available at the time we go to read a packet, retry
the read using a timeout to ensure that all data for the packet is received.
2 some minor changes to meet coding standards
3 eliminate some compiler warnings
2007-10-10 10:57:00 -05:00
Herb Lewis
94e5347266 r6623: This change fixes a few broken commands plus adds some
new commands. It also restructures it so you can execute
a single command from the command line. Input strings are
parsed to allow input of arbitrary characters using the
\xx syntax for hex values.
2007-10-10 10:56:47 -05:00
Jeremy Allison
28772dfca1 r6235: Partial fix for bugid #2581. Ensure if realloc fails on an internal
tdb we fail gracefully.
Jeremy.
2007-10-10 10:56:31 -05:00
Herb Lewis
efea76ac71 r6225: get rid of warnings from my compiler about nested externs 2007-10-10 10:56:30 -05:00
Derrell Lipman
994694f7f2 r6149: Fixes bugs #2498 and 2484.
1. using smbc_getxattr() et al, one may now request all access control
   entities in the ACL without getting all other NT attributes.
2. added the ability to exclude specified attributes from the result set
   provided by smbc_getxattr() et al, when requesting all attributes,
   all NT attributes, or all DOS attributes.
3. eliminated all compiler warnings, including when --enable-developer
   compiler flags are in use.  removed -Wcast-qual flag from list, as that
   is specifically to force warnings in the case of casting away qualifiers.

Note: In the process of eliminating compiler warnings, a few nasties were
      discovered.  In the file libads/sasl.c, PRIVATE kerberos interfaces
      are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED
      kerberos interfaces are being used.  Someone who knows kerberos
      should look at these and determine if there is an alternate method
      of accomplishing the task.
2007-10-10 10:56:24 -05:00
Derrell Lipman
5b19ede88e r6127: Eliminated all compiler warnings pertaining to mismatched "qualifiers". The
whole of samba comiles warning-free with the default compiler flags.

Temporarily defined -Wall to locate other potential problems.  Found an
unused static function (#ifdefed out rather than deleted, in case it's
needed for something in progress).

There are also a number of uses of undeclared functions, mostly krb5_*.
Files with these problems need to have appropriate header files included,
but they are not fixed in this update.

oplock_linux.c.c has undefined functions capget() and capset(), which need
to have "#undef _POSIX_SOURCE" specified before including <sys/capability.h>,
but that could potentially have other side effects, so that remains uncorrected
as well.

The flag -Wall should be added permanently to CFLAGS, and all warnings then
generated should be eliminated.
2007-10-10 10:56:24 -05:00
Volker Lendecke
d89b40e9b1 r5861: Apply some const 2007-10-10 10:56:05 -05:00
Volker Lendecke
66471de977 r5767: Get rid of some compiler warnings 2007-10-10 10:56:00 -05:00
Jeremy Allison
f997c28bb8 r5532: Patch to detect infinite loops when traversing a tdb from "Shlomi Yaakobovich" <Shlomi@exanet.com>
Jeremy.
2007-10-10 10:55:45 -05:00
Jeremy Allison
620f2e608f r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
2007-10-10 10:53:32 -05:00
Gerald Carter
1bc79a2808 r3772: BUG 2006: patch from Michel Gravey <michel.gravey@optogone.com>; fix build when using gcc 3.0 2007-10-10 10:53:17 -05:00
Jeremy Allison
c3e87f9fa5 r2999: Remove lockedkeys code. Not used.
Jeremy.
2007-10-10 10:52:59 -05:00
Jeremy Allison
365b203164 r2979: Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys().
Spotted by Taj Khattra <taj.khattra@gmail.com>.
Jeremy.
2007-10-10 10:52:58 -05:00
Tim Potter
b6193f6d52 r2924: Another #if that should be an #ifdef. 2007-10-10 10:52:56 -05:00
Tim Potter
53bfb76608 r2248: Merge of tridge's PRINTF_ATTRIBUTE fixes from samba4. 2007-10-10 10:52:37 -05:00
Jim McDonough
67c737118f r2239: Fixup formatting errors in TDB_LOG calls. Add printf attribute support to
tdb log functions.
2007-10-10 10:52:37 -05:00
Jim McDonough
30da4e7771 r2131: Fixup format string. The magic value format specifier was missing, so
the logged offset was really the magic value, and the true offset was
never displayed.
2007-10-10 10:52:32 -05:00
Jeremy Allison
d7ea1ea8fb r2032: If you're selecting a hash algorithm for tdb, you need to do it at open time,
it doesn't make sense anywhere else.
Jeremy.
2007-10-10 10:52:29 -05:00
Jeremy Allison
3fbadac85b r2026: Simplify statcache to use an in-memory tdb. Modify tdb to use
a customer hash function for this tdb (yes it does make a difference
on benchmarks). Remove the no longer used hash.c code.
Jeremy.
2007-10-10 10:52:29 -05:00
John Terpstra
c5dc3da340 r923: Fixes so tdbtool and tdbtest can be built. Added build specs for tdbdump and tdbbackup. 2007-10-10 10:51:49 -05:00
Gerald Carter
a7e2730ec4 r39: * importing .cvsignore files
* updateing WHATSNEW with vl's change
2007-10-10 10:51:05 -05:00
Andrew Tridgell
9d1a08d65c merge tdb changes from samba4 - this means tdb is now under the LGPL, as discussed and agreed previously -
Tim Potter
1bba071126 Merge from HEAD. -
Rafal Szczesniak
33d1e2dd63 Added copyrights I forgot about looong ago...
rafal
-
Jeremy Allison
14dee03801 Fix the "too many fcntl locks" scalability problem raised by tridge.
I've now tested this in daemon mode and also on xinetd and I'm pretty
sure it's working.
Jeremy.
-
Tim Potter
2423a45947 Don't log an error in tdb_brlock() if a non-blocking lock returns EAGAIN -
it's supposed to do that.
-
Andrew Bartlett
c9f9d6d317 In tdb_allocate(), we would create a new record by writing a local variable
'newrec' into the tdb.

This was not initialised, so valgrind warned about it.

(Note:  valgrind only makes sense on tdbs with 'mmap = no' in your smb.conf)

Andrew Bartlett
-
Jeremy Allison
1ae1987a00 IRIX spinlock patch from James Peach <jpeach@sgi.com>.
Jeremy.
-
Tim Potter
2d03d81f75 Add some debugs in the error paths for tdb_brlock() to help track down
a locking problem on HPUX.
-
Andrew Tridgell
76992e7d16 fixed spinlocks in tdb
I still wouldn't recommend them, but at least they now work
-
Simo Sorce
c78f2d0bd1 split some security related functions in their own files.
(no need to include all of smbd files to use some basic sec functions)

also minor compile fixes
couldn't compile to test these due to some kerberos problems wirh 3.0,
but on HEAD they're working well, so I suppose it's ok to commit
-
Jeremy Allison
93669f329e Portability fixes from schmitz@hp.com (Joachim Schmitz). Bug #549.
Jeremy.
-
Gerald Carter
e1fac713e2 fix some warnings found by the Sun C compiler -
Jeremy Allison
155c9ce666 Change some internal interfaces to cause the hash (which is *expensive*)
to be calculated less often. No change to external interface.
Jeremy.
-
Gerald Carter
d0d85dd49c adding command for moving a record from one tdb to another -
Gerald Carter
5df7b9a3ef make tdbtool deal with NULL and non-NULL terminated keys -
Gerald Carter
66359531b8 i guess i'm the only one this ever annyoed...
fix the confusion when we tdb_lock_bystring() but
we retrieve an entry using tdb_fetch_by_string.
It's now always tdb.*bystring()
-
Volker Lendecke
0f3822c8e7 Different fix for memleak just committed. This belongs into
tdb_search_list_free.

Volker
-
Simo Sorce
73e13b9baf do not forget the include file :-) -
Simo Sorce
2bdbeb9e97 add tdb backup function separation and winbind idmap upgrade code form
pre-2.2.4 tdb database format.

tx volker for your work on this
-
Andrew Tridgell
f327c06108 fixed a bug found by volker
when we are traversing a readonly dababase we should not try to
cleanup the pending-delete records
-
Volker Lendecke
6684f5b11f Get rid of a const warning.
Volker
-
Volker Lendecke
678e68a295 Fix typo found by Vance -
Tim Potter
865c112756 spelling -
Andrew Bartlett
76cd4a8901 Start merging mimir's trusted domain code from HEAD to 3.0. (for HEAD trusting
NT).
-
Andrew Bartlett
5c978e39f2 Merge valgrind header usage from HEAD. -
Jelmer Vernooij
0bc9e5e5d7 It's #ifdef CONFIG_H, not #if CONFI_H -
Tim Potter
72e7290daa Comment syncup. -