21 years agoadd winbind manual in SWAT welcome page
Andrew Tridgell [Fri, 12 May 2000 05:08:06 +0000 (05:08 +0000)]
add winbind manual in SWAT welcome page
(This used to be commit d8515aa8878480d44efa17e674bcad29387ad76f)

21 years agouse our primary domain trust account for trusted domain authentication
Andrew Tridgell [Fri, 12 May 2000 05:07:26 +0000 (05:07 +0000)]
use our primary domain trust account for trusted domain authentication
(This used to be commit db90a4b9609a980fa2f4328d38a0d2c60a1384a0)

21 years agoupdated the appliance README
Andrew Tridgell [Fri, 12 May 2000 05:06:27 +0000 (05:06 +0000)]
updated the appliance README
(This used to be commit 0e29eef8374e7bf0002acbd04d5438c5c1690c44)

21 years agoManpage version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:07:44 +0000 (04:07 +0000)]
Manpage version of yodl doc.
(This used to be commit 810726a33b97ef57b8d4bde215fc9f829f59f3c8)

21 years agoHTML version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:03:35 +0000 (04:03 +0000)]
HTML version of yodl doc.
(This used to be commit dce11c9cd1638f2bd4b762e309a2b2e630d8ba01)

21 years agoChanged all references of ntdom to winbind.
Tim Potter [Fri, 12 May 2000 04:02:43 +0000 (04:02 +0000)]
Changed all references of ntdom to winbind.
(This used to be commit 2463f689022812067ef54a8ff0d2346c60e3f451)

21 years agoInitial version of appliance spec file.
Tim Potter [Fri, 12 May 2000 03:04:56 +0000 (03:04 +0000)]
Initial version of appliance spec file.
(This used to be commit 1be483c90b8f59cefdaf05594564882d99f0fbd3)

21 years agoan imcompatible tdb format change (sorry!)
Andrew Tridgell [Fri, 12 May 2000 02:57:24 +0000 (02:57 +0000)]
an imcompatible tdb format change (sorry!)

this will give us a much nicer migration path for the proposed
semaphore code
(This used to be commit 491ab241897a7252fb088c718de4bdf7f43f4ddc)

21 years agoCheck fstat return for error.
Jeremy Allison [Fri, 12 May 2000 00:11:49 +0000 (00:11 +0000)]
Check fstat return for error.
(This used to be commit c54e77b1f9defce3d6c2e530e0fb460c2b0c54c2)

21 years agolib/util_unistr.c:
Jeremy Allison [Wed, 10 May 2000 22:47:09 +0000 (22:47 +0000)]
smbd/trans2.c: Changed unistr_to_ascii to unistr_to_dos - do codepage conversion.
msdfs/msdfs.c: Removed stub unistr_to_dos.
libsmb/pwd_cache.c: Removed obfuscation functions as they don't do anything and
don't add any security.
(This used to be commit 1ed146467e764e6a81d8f78cd58fb5765ebf5d21)

21 years agoHo hum - forgot timeout case.
Jeremy Allison [Wed, 10 May 2000 18:53:03 +0000 (18:53 +0000)]
Ho hum - forgot timeout case.
(This used to be commit 597ecd724e0d4ac7c19eb9fb85b3c9910bbfb114)

21 years agoFix from David Collier-Brown - sys_select return was not being checked.
Jeremy Allison [Wed, 10 May 2000 18:27:58 +0000 (18:27 +0000)]
Fix from David Collier-Brown - sys_select return was not being checked.
(This used to be commit a9c4371a2dc27e499ad6d35af1b598a4af0026c8)

21 years ago- changed smb_getpwnam() to use winbind style usernames
Andrew Tridgell [Wed, 10 May 2000 14:48:33 +0000 (14:48 +0000)]
- changed smb_getpwnam() to use winbind style usernames
- finished ntdom -> winbind rename in head
(This used to be commit ada483cb56453afc6df4ec4be18bfe5e943c7150)

21 years agoupdated appliance Makefile
Andrew Tridgell [Wed, 10 May 2000 14:47:12 +0000 (14:47 +0000)]
updated appliance Makefile
(This used to be commit bfa14cff8c0a1a7a18cb649dc33d5aabc9cd53ac)

21 years agoin head as well ...
Andrew Tridgell [Wed, 10 May 2000 14:17:21 +0000 (14:17 +0000)]
in head as well ...

renamed ntdom to winbind
I think that using winbind in /etc/nsswitch.conf is better than ntdom
(This used to be commit 80f85b5359c26dc26f8f88b984f27cfa4ac34e61)

21 years agotreat a blank "password server =" line as a "*" if in domain security
Andrew Tridgell [Wed, 10 May 2000 13:21:32 +0000 (13:21 +0000)]
treat a blank "password server =" line as a "*" if in domain security
(This used to be commit 5a617c013cce65434d315dc33279a4bc28dc63de)

21 years agowhen creating the database zero the reserved space
Andrew Tridgell [Wed, 10 May 2000 12:58:20 +0000 (12:58 +0000)]
when creating the database zero the reserved space
(This used to be commit a5ca60f62bea988e74e2827fbb848770ac5ae444)

21 years agoproto rebuild
Andrew Tridgell [Wed, 10 May 2000 11:50:28 +0000 (11:50 +0000)]
proto rebuild
(This used to be commit b396dbb1a7a498f9e815f914aa391ccf6f635e20)

21 years agocheck for sighup on each packet - otherwise it can take a _long_ time
Andrew Tridgell [Wed, 10 May 2000 11:49:55 +0000 (11:49 +0000)]
check for sighup on each packet - otherwise it can take a _long_ time
to reload services
(This used to be commit 0fb4ba4e037f25b8b75bcae0ecb1d9b43f0f9e5f)

21 years agofail a print start on a deleted auto printer
Andrew Tridgell [Wed, 10 May 2000 11:49:06 +0000 (11:49 +0000)]
fail a print start on a deleted auto printer
(This used to be commit f1f92bf4da75ec6fccd34b07719d642196665258)

21 years agoI found a better way of handling deleted auto printers
Andrew Tridgell [Wed, 10 May 2000 11:48:30 +0000 (11:48 +0000)]
I found a better way of handling deleted auto printers
(This used to be commit f838707820175f97db82fc32f124c3b69b051e6b)

21 years agoformatting fix
Andrew Tridgell [Wed, 10 May 2000 11:45:16 +0000 (11:45 +0000)]
formatting fix
(This used to be commit 3e710f660253fe6fa5c0ed7435ec66a2ed908b28)

21 years agoremove autoloaded printers that are no longer in /etc/printcap when we
Andrew Tridgell [Wed, 10 May 2000 11:20:46 +0000 (11:20 +0000)]
remove autoloaded printers that are no longer in /etc/printcap when we
get a HUP
(This used to be commit 23f16c5ce60f76633458cc21b2d260d347b1b459)

21 years agopatch from Dominik Kubla <dominik.kubla@uni-mainz.de>
Andrew Tridgell [Wed, 10 May 2000 11:08:08 +0000 (11:08 +0000)]
patch from Dominik Kubla <dominik.kubla@uni-mainz.de>
(This used to be commit 9c598e571decb449607042ba9628f68de9b45043)

21 years agomore merging voodoo
Andrew Tridgell [Wed, 10 May 2000 10:41:59 +0000 (10:41 +0000)]
more merging voodoo

this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic -
this isn't permanent, it should go after another few merge steps have
been done
(This used to be commit 92109d7b3c06f240452d39f669ecb8c9c86ab610)

21 years agomore merging
Andrew Tridgell [Wed, 10 May 2000 09:49:55 +0000 (09:49 +0000)]
more merging

it is now at the stage that winbindd can compile in the head branch,
but not link
(This used to be commit d178c00aae77710ae6ff20a7f54a30e3bd8232bb)

21 years ago- add some reserved space to every tdb, this will be
Andrew Tridgell [Wed, 10 May 2000 06:02:37 +0000 (06:02 +0000)]
- add some reserved space to every tdb, this will be
  used for semaphores and future expansion
- update tdb version number to 2
(This used to be commit 5e04885b86791e6ef8b4a316e64d56c6eb05f35d)

21 years agoUse a prime for default tdb hash size - this makes a difference !
Herb Lewis [Wed, 10 May 2000 01:32:51 +0000 (01:32 +0000)]
Use a prime for default tdb hash size - this makes a difference !
(This used to be commit 400906e6421c150b591b4bf978a641d5aaf8fd09)

21 years agoFix for misunderstanding of fsync added when vfs layer
Herb Lewis [Wed, 10 May 2000 01:31:46 +0000 (01:31 +0000)]
Fix for misunderstanding of fsync added when vfs layer
was done. Samba was doing fsync's (bleagh).
(This used to be commit f9a52cadbf11f7afcef754a59d783964a2edb5bc)

21 years agoUsing a structure for a tdb key can lead to insideous, hard
Herb Lewis [Wed, 10 May 2000 00:05:27 +0000 (00:05 +0000)]
Using a structure for a tdb key can lead to insideous, hard
to find bugs. On 64 bit IRIX, structure packing means that
struct {
SMB_DEV_T dev /* 4 bytes */
SMB_INO_T ino /* 8 bytes */

has 4 bytes of padding between the two members. If you
don't null the memory before using it as a tdb key,
you randomly can't find keys depending on what is in
the padding. This caused me immense pain and was hard
to track down.... :-)

(This used to be commit f2a5ba3f0939f59097f0ef6a25f1cf9b5574f157)

21 years agoFix for check_kernel_oplocks looking for the var directory
Herb Lewis [Tue, 9 May 2000 22:07:07 +0000 (22:07 +0000)]
Fix for check_kernel_oplocks looking for the var directory
before it may need to be created.
(This used to be commit 6bf74da8b84a22aaddb0fbb160f02621abba01ba)

21 years agoThis is reall Jeremy commiting as Herb at SGI labs. Fix
Herb Lewis [Tue, 9 May 2000 22:05:39 +0000 (22:05 +0000)]
This is reall Jeremy commiting as Herb at SGI labs. Fix
for "socket operation on non-socket" error in log.smb
on HEAD branch startup (server_fd not initialized to -1).
(This used to be commit ebb4f76550062b0ea2005a2b8842641a2c91f528)

21 years ago- use smb_gwtpwnam() in another couple of places
Andrew Tridgell [Tue, 9 May 2000 15:09:52 +0000 (15:09 +0000)]
- use smb_gwtpwnam() in another couple of places
- don't call add/del user if the scripts are empty
(This used to be commit 43860215d4d16cb1bacdc77f1c46c54e4c54abd7)

21 years agofixed some winbind cache bugs
Andrew Tridgell [Tue, 9 May 2000 15:08:46 +0000 (15:08 +0000)]
fixed some winbind cache bugs
(This used to be commit 3cac3ccf047ce9a5c28916f9a2b1b3d38741e373)

21 years agothe beginnings of a new scheme I've working on to allow an easier
Andrew Tridgell [Tue, 9 May 2000 13:28:19 +0000 (13:28 +0000)]
the beginnings of a new scheme I've working on to allow an easier
head/tng merge.

It goes something like this:

- headers from tng get copied over one at a time

- the old headers get renamed to *_old.h

- server side code that used the old headers gets a
  #define OLD_NTDOMAIN 1
  at the start and end of the code

- mkproto.awk recognises these special defines and does magic stuff so
  that each .c file sees the right headers

- we start moving the rpc client libraries from tng to head.

if this goes OK then, in theory, we should be able to move the client
side rpc code from tng to head without disturbing the existing head
server side code. Then when that works we can consider merging the
server side.

it remains to be seen if this scheme will work. So far I've moved
rpc_samr.h and don't seem to have broken anything.

Note this this is still a very delicate operation, as at every step of
the way I want to keep head fully functional. Please don't take part
unless you discuss it with me first.
(This used to be commit f76c037255a6a79d11bec65e863e009a41a4f0fd)

21 years agodon't attempt to build rpcclient in the head branch
Andrew Tridgell [Tue, 9 May 2000 13:21:58 +0000 (13:21 +0000)]
don't attempt to build rpcclient in the head branch
(This used to be commit 1b6d01e1152d1ac64e3b1f721227d06061982112)

21 years agobrought across some rpc header files from tng
Andrew Tridgell [Tue, 9 May 2000 11:44:09 +0000 (11:44 +0000)]
brought across some rpc header files from tng
(This used to be commit db241a0b09fc38916db3b1a30aa493910d22567b)

21 years agobrought the winbindd code into head
Andrew Tridgell [Tue, 9 May 2000 11:43:00 +0000 (11:43 +0000)]
brought the winbindd code into head

this does not yet compile, but I'm working on that.
(This used to be commit 3fb862531a4e78dca13d16d958517b16e5bdd4e2)

21 years agoadded some rules for winbindd and pam_winbind
Andrew Tridgell [Tue, 9 May 2000 11:41:38 +0000 (11:41 +0000)]
added some rules for winbindd and pam_winbind
(This used to be commit 6c5d139844334191f78257fbc9f01d0fa0c2bcf0)

21 years agoAdded tdb_store_by_string() and tdb_fetch_by_string() functions to store
Tim Potter [Tue, 9 May 2000 06:22:12 +0000 (06:22 +0000)]
Added tdb_store_by_string() and tdb_fetch_by_string() functions to store
data with null terminated string keys.
(This used to be commit d58146321b6fe50e1cc1a73da80c3d2e8c3412dc)

21 years agothe beginnings of a description of how to setup a Samba appliance
Andrew Tridgell [Tue, 9 May 2000 04:02:31 +0000 (04:02 +0000)]
the beginnings of a description of how to setup a Samba appliance
(This used to be commit ec2b77e97d8beaee9d2352411da01b302d0875c3)

21 years agoFix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>
Jeremy Allison [Mon, 8 May 2000 18:24:26 +0000 (18:24 +0000)]
Fix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>
(This used to be commit eb281324fa409296bb3f29c9b7c59b2337fadc0d)

21 years agoSomeone :-) forgot to add secrets.c to HEAD.
Jeremy Allison [Mon, 8 May 2000 18:14:25 +0000 (18:14 +0000)]
Someone :-) forgot to add secrets.c to HEAD.
(This used to be commit ac40971f30e00a93fc5e138bfd1afa05cd8dea4b)

21 years agoadded secrets.tdb and changed storage of trust account password to use
Andrew Tridgell [Mon, 8 May 2000 10:42:21 +0000 (10:42 +0000)]
added secrets.tdb and changed storage of trust account password to use
(This used to be commit 88ad00b82acc4636ab57dfe710af08ea85b82ff1)

21 years agoAdded winbindd parameters to smb.conf documentation.
Tim Potter [Mon, 8 May 2000 10:38:52 +0000 (10:38 +0000)]
Added winbindd parameters to smb.conf documentation.
(This used to be commit 1d3bd3c486bf9f6b6c9d5f6207f591f465517e1e)

21 years agoInitial version of winbindd manual page.
Tim Potter [Mon, 8 May 2000 10:00:02 +0000 (10:00 +0000)]
Initial version of winbindd manual page.
(This used to be commit dbe26556e70bf1b3d5770b4fd21e146650e82a91)

21 years agoadded winbindd options in head branch, so it is possible to combine
Andrew Tridgell [Sat, 6 May 2000 15:06:45 +0000 (15:06 +0000)]
added winbindd options in head branch, so it is possible to combine
(This used to be commit cd5e2494279792f8516947a63bf313f8142a52c0)

21 years agofixed a vfs crash bug
Andrew Tridgell [Sat, 6 May 2000 15:00:49 +0000 (15:00 +0000)]
fixed a vfs crash bug
(This used to be commit 76da586396c85b6614579b9234eec34f57c12ffe)

21 years agosigned/unsigned fixes so we can handle a lock base close to 2^32
Andrew Tridgell [Sat, 6 May 2000 01:36:59 +0000 (01:36 +0000)]
signed/unsigned fixes so we can handle a lock base close to 2^32
(This used to be commit 0ce2ca5ccdd0e2e7711dcbf66b72a183b2692cfe)

21 years agoFix for uninitialized memory read in brlock code. brl_locktest now needs
Jeremy Allison [Fri, 5 May 2000 20:50:22 +0000 (20:50 +0000)]
Fix for uninitialized memory read in brlock code. brl_locktest now needs
to correctly set the fnum, as the brl_conflict code looks at it.
(This used to be commit df87259a356b91989604a10b3691480dcd16cf3f)

21 years agoFix for dual unix_to_dos conversion in readdir from A.V.Shutko <AVShutko@mail.khstu.ru>
Jeremy Allison [Fri, 5 May 2000 19:57:02 +0000 (19:57 +0000)]
Fix for dual unix_to_dos conversion in readdir from A.V.Shutko <AVShutko@mail.khstu.ru>
(This used to be commit 1152f2ed008dbfa7e2b1cb9719d31575e7d05b89)

21 years agoadd new release notes chapter to samba for irix package
Herb Lewis [Fri, 5 May 2000 14:31:36 +0000 (14:31 +0000)]
add new release notes chapter to samba for irix package
(This used to be commit e2de1cf2221f56a5ee3537664d211cdcdfe74785)

21 years agoFix for crash bug in OpenConfFile() if no smb.conf exists.
Tim Potter [Fri, 5 May 2000 04:18:22 +0000 (04:18 +0000)]
Fix for crash bug in OpenConfFile() if no smb.conf exists.
(This used to be commit b531ddb2657e9eac1c1e9f32344b67c3963ce30a)

21 years agoFix for read_file() returning -1.
Jeremy Allison [Fri, 5 May 2000 02:39:02 +0000 (02:39 +0000)]
Fix for read_file() returning -1.
(This used to be commit b899943658bee90994b416aa6caff0ee7cab5f28)

21 years agoTwo fixes. Added missong logic & case in lock split code.
Jeremy Allison [Fri, 5 May 2000 02:17:39 +0000 (02:17 +0000)]
Two fixes. Added missong logic & case in lock split code.
Fixed range split into two, as DLIST_ADD has the wrong semantics...
(This used to be commit 82681edda14dcc3d58bb303cfac5452072de67df)

21 years agomake debug easier to read
Andrew Tridgell [Fri, 5 May 2000 01:26:52 +0000 (01:26 +0000)]
make debug easier to read
(This used to be commit c14a2616441b2f3357a081c6dbae7d5b677e5a12)

21 years agomake debug easier to read
Andrew Tridgell [Fri, 5 May 2000 01:20:25 +0000 (01:20 +0000)]
make debug easier to read
(This used to be commit d64bb07f0ad0efa1a20015b620ae33fb082b1e44)

21 years agonasty hack to print posix locks
Andrew Tridgell [Fri, 5 May 2000 01:11:23 +0000 (01:11 +0000)]
nasty hack to print posix locks
(This used to be commit efc9752f1e00b38abe3b5d3a98627a9fe6122bc4)

21 years agoexample of broken posix lock behaviour
Andrew Tridgell [Fri, 5 May 2000 00:46:38 +0000 (00:46 +0000)]
example of broken posix lock behaviour
(This used to be commit b3999f3b20d470b9c873b297e7aeb043da61588d)

21 years agorpc_server/srv_lsa.c: Bring into sync with 2.0.x.
Jeremy Allison [Thu, 4 May 2000 21:57:28 +0000 (21:57 +0000)]
rpc_server/srv_lsa.c: Bring into sync with 2.0.x.
rpc_server/srv_pipe_hnd.c: Bring into sync with 2.0.x.
smbd/blocking.c: Improve blocking debug reporting.
utils/torture.c: Added check for NT locking bug.
(This used to be commit e8ff6d3fb5537c39611a5784bf7216ae812acd27)

21 years agoUpdated to fix overlapping problem.
Jeremy Allison [Thu, 4 May 2000 19:01:14 +0000 (19:01 +0000)]
Updated to fix overlapping problem.
(This used to be commit 9bdfe0f5023988962f8a8b4d847de7a0ee27f85c)

21 years agoa minimal change to get appliance mode to work with winbindd
Andrew Tridgell [Thu, 4 May 2000 16:01:47 +0000 (16:01 +0000)]
a minimal change to get appliance mode to work with winbindd

we needed to accept usernames of the form DOMAIN/user, which means we
needed to pass the domain to a getpwnam() like routine in certain
critical spots.

What I'd rather do is get rid of "char *user" everywhere and use the
new userdom_struct, but that will have to wait a few days.
(This used to be commit 8b7a10febead8be182e7d5b1d68259e31530b69c)

21 years agoparameterize the lock timeout
Andrew Tridgell [Thu, 4 May 2000 09:32:21 +0000 (09:32 +0000)]
parameterize the lock timeout
(This used to be commit 98ad4095ccc8d0349d05e6e9223eaad057029626)

21 years agoadded a test for the NT byte range lock into smbtorture
Andrew Tridgell [Thu, 4 May 2000 09:31:57 +0000 (09:31 +0000)]
added a test for the NT byte range lock into smbtorture
(This used to be commit 7cfd45cc56e01a20a122c7742dc7e6a4ed59415f)

21 years agoan even simpler example of NT gettings its locking code wrong. This
Andrew Tridgell [Thu, 4 May 2000 08:58:07 +0000 (08:58 +0000)]
an even simpler example of NT gettings its locking code wrong. This
one doesn't even need two connections to the box, just two file handles.

it is a very simple case actually, and one I think will happen quite a
lot in real life. I wonder how they haven't noticed it? I checked and
W2K has the same bug.
(This used to be commit 0b335e415818028ac0daad5f99c2fd9086a2a656)

21 years ago - use full_name instead of real_name
Andrew Tridgell [Thu, 4 May 2000 07:59:34 +0000 (07:59 +0000)]
 - use full_name instead of real_name
 - got rid of guest map code in lpq parser
(This used to be commit 8e53f781d3cf6a7007764916a0d8e8f1abea1f66)

21 years agoneed LOCKING_OBJ in locktest now
Andrew Tridgell [Thu, 4 May 2000 06:57:26 +0000 (06:57 +0000)]
need LOCKING_OBJ in locktest now
(This used to be commit 89e71994450f479a0f3839f192d868924626fc84)

21 years agomore locktest improvements
Andrew Tridgell [Thu, 4 May 2000 06:30:17 +0000 (06:30 +0000)]
more locktest improvements

the current preset tests show a very interesting NT bug - it sometimes
refuses a lock that it shouldn't.
(This used to be commit 85b5dc64cf7cc80567f9069a48c4d20c10ccec01)

21 years agofixed message text
Andrew Tridgell [Thu, 4 May 2000 06:29:13 +0000 (06:29 +0000)]
fixed message text
(This used to be commit 99e522023eae7cf1a88e5de50f2b09df3ea318d3)

21 years agoif the stat cache is off then don't initialise it
Andrew Tridgell [Thu, 4 May 2000 06:28:38 +0000 (06:28 +0000)]
if the stat cache is off then don't initialise it
(This used to be commit cd5dcd9e659a7255f03eb496c0202986375e73a6)

21 years agoadded -A analyze mode to locktest - it can now automatically prune
Andrew Tridgell [Thu, 4 May 2000 04:14:23 +0000 (04:14 +0000)]
added -A analyze mode to locktest - it can now automatically prune
the list of locks that cause a failure
(This used to be commit 0beee59432f17f90a1c4c2c68a7ea6022b5d0908)

21 years agofound a much simpler case that kills the posix locking
Andrew Tridgell [Thu, 4 May 2000 02:12:33 +0000 (02:12 +0000)]
found a much simpler case that kills the posix locking
(This used to be commit b703cecf81dc62234171eaaa4c0cae448f144e1f)

21 years agofixed a uninit memory read that insure found
Andrew Tridgell [Thu, 4 May 2000 02:01:48 +0000 (02:01 +0000)]
fixed a uninit memory read that insure found
(This used to be commit 43fe5b98b4514d59e1c4bbc54a628cfbd771fc4f)

21 years agoadded ability to present lock tests
Andrew Tridgell [Thu, 4 May 2000 01:40:51 +0000 (01:40 +0000)]
added ability to present lock tests
(This used to be commit 3fc6a467fc3dfd2a59d4509ec52172d2dd048c80)

21 years agoFix for debug statement crash.
Jeremy Allison [Thu, 4 May 2000 00:29:50 +0000 (00:29 +0000)]
Fix for debug statement crash.
(This used to be commit 57bf92d90147b207664152d44ce4bfb5235dc7d8)

21 years agounicode code pages are detected as compiler intermediate file so set to
Herb Lewis [Wed, 3 May 2000 22:29:54 +0000 (22:29 +0000)]
unicode code pages are detected as compiler intermediate file so set to
(This used to be commit 5e7bc9c3e705cfaa12bd0071a873c79e2097a5a0)

21 years agoFix based on Elrond's code to reduce the store size on removing dead records.
Jeremy Allison [Wed, 3 May 2000 20:33:25 +0000 (20:33 +0000)]
Fix based on Elrond's code to reduce the store size on removing dead records.
(This used to be commit 09e92a61a966d09f543ba541ddb3240cc4718579)

21 years agoFixed the bug locktest.c found, it was an off-by-one error in the non-overlap
Jeremy Allison [Wed, 3 May 2000 19:37:47 +0000 (19:37 +0000)]
Fixed the bug locktest.c found, it was an off-by-one error in the non-overlap
(This used to be commit 65150c408a5254215de89c8c774c33c4d011c2c0)

21 years agoFixed silly bug where I wasn't checking for matching fd's in closing a file.
Jeremy Allison [Wed, 3 May 2000 18:57:21 +0000 (18:57 +0000)]
Fixed silly bug where I wasn't checking for matching fd's in closing a file.
This caused smbd crashes on SIGKILL.
(This used to be commit d4dcefd12d14df112f083c312acbea0196bc5c23)

21 years agoAdded range info to the panic message to track down the bug with
Jeremy Allison [Wed, 3 May 2000 17:50:42 +0000 (17:50 +0000)]
Added range info to the panic message to track down the bug with
(This used to be commit 91f038356b7efa04cf4bfa5e6afd8b144b6b4ad5)

21 years agoimproved the lock test program
Andrew Tridgell [Wed, 3 May 2000 14:49:15 +0000 (14:49 +0000)]
improved the lock test program
(This used to be commit a0a3931c6e5824121bf4a8d075ef24b9b70e8aa1)

21 years ago- clear dead locks at startup
Andrew Tridgell [Wed, 3 May 2000 14:29:05 +0000 (14:29 +0000)]
- clear dead locks at startup

- fixed a bug which caused lock records to not decrease in size
(This used to be commit 51624a3a2f5a4ac55b4f26f572a2fc399f9c808e)

21 years agoadded a nasty lock testing program
Andrew Tridgell [Wed, 3 May 2000 13:54:28 +0000 (13:54 +0000)]
added a nasty lock testing program

it opens 2 connections to each of 2 servers, and opens 2 fnums on the
same file on each connection (a total of 8 file descriptors)

then it does random lock/unlock/reopen requests in a 100 byte range on
the file and compares the results from the 2 servers.

strangely enough, NT fails this test against itself right now - I'm
still trying to figure that out.
(This used to be commit 2f14d7c9bca5e170b8d2c169801cb200021fd467)

21 years agoFix for stacking locks in brlock and POSIX. Windows only allows a read lock
Jeremy Allison [Wed, 3 May 2000 02:27:41 +0000 (02:27 +0000)]
Fix for stacking locks in brlock and POSIX. Windows only allows a read lock
to overlay a write lock on the same fnum. When overlaying read locks onto
a write lock, the number of locks is counted, and the first unlock removes
the write lock and downgrades this to a read lock. Do the same when mapping
(This used to be commit 74d42644e6e52808037975e909aa56c850838b76)

21 years agoAdded read overlay write lock on same fnum test to locktest2.
Jeremy Allison [Wed, 3 May 2000 02:24:56 +0000 (02:24 +0000)]
Added read overlay write lock on same fnum test to locktest2.
Added locktest5 for locking stacks.
(This used to be commit 65399ae1f058886b8779a01fb35fe3080cc3c145)

21 years agoInsure uninitialized memory read fixes.
Jeremy Allison [Wed, 3 May 2000 02:24:01 +0000 (02:24 +0000)]
Insure uninitialized memory read fixes.
(This used to be commit 577ddbfbec857dec3ade811f735ec6b183566435)

21 years agomerge 2.0 changes
Herb Lewis [Wed, 3 May 2000 01:07:33 +0000 (01:07 +0000)]
merge 2.0 changes
(This used to be commit 7b3afe300b1ef54f7daa0f2dce6fd8c256e04b37)

21 years agoFixed wild pointer diff found by insure.
Jeremy Allison [Tue, 2 May 2000 23:56:24 +0000 (23:56 +0000)]
Fixed wild pointer diff found by insure.
(This used to be commit 158d9cada8c12725981d495faf8ed9f5d4306e23)

21 years agoImplemented the last (I hope:-) part of the locking puzzle, the reference
Jeremy Allison [Tue, 2 May 2000 21:07:25 +0000 (21:07 +0000)]
Implemented the last (I hope:-) part of the locking puzzle, the reference
counting when Windows downgrades a write lock to a read lock, then reference
counts the unlocks to match the locks.
With this code the POSIX unlock isn't done until the final Windows unlock.
(This used to be commit 6eb4fb6eef367f68169d6ec1c816226b1ad9f110)

21 years agoadded support for deleting printers into the spoolss system
Andrew Tridgell [Tue, 2 May 2000 15:31:55 +0000 (15:31 +0000)]
added support for deleting printers into the spoolss system
(This used to be commit e72a5718537b84409fc20ff21951b1d1ab24d97f)

21 years agosplit the username in the vuser structure into a separate
Andrew Tridgell [Tue, 2 May 2000 13:55:42 +0000 (13:55 +0000)]
split the username in the vuser structure into a separate
userdom_struct. As the name implies this also contains a domain
(unused at the moment).

This will be important shortly, as operation in appliance mode needs
the domain to be always carried with the username.
(This used to be commit ee8546342d5be90e730372b985710d764564b124)

21 years agoand yet another memory leak - this one in the client
Andrew Tridgell [Tue, 2 May 2000 07:50:33 +0000 (07:50 +0000)]
and yet another memory leak - this one in the client
(This used to be commit a85ae6e0ae39530a96e8b86ab868cfd7ea5bc967)

21 years agofixed a memory leak (calling hash_table_init twice)
Andrew Tridgell [Tue, 2 May 2000 07:10:54 +0000 (07:10 +0000)]
fixed a memory leak (calling hash_table_init twice)
(This used to be commit 610fcef4d33db2b62e6298bdb68546a2411d03b1)

21 years agofixed a memory leak
Andrew Tridgell [Tue, 2 May 2000 07:10:26 +0000 (07:10 +0000)]
fixed a memory leak
(This used to be commit d4743ec0be419565c805fbc5ba2680c6ad5fe36d)

21 years agoMoved uglyness needed in fcntl locking (64->32 bit mapping, NFS
Jeremy Allison [Tue, 2 May 2000 03:20:47 +0000 (03:20 +0000)]
Moved uglyness needed in fcntl locking (64->32 bit mapping, NFS
errors etc.) into locking/posix.c, where it is needed. fcntl_lock in lib/util.c
is now very small and clean.
Added (*lock) op to vfs layer.
(This used to be commit 46092ee1410faa4e3c143d80a960a8adaa19d7fc)

21 years agoAdded sys_fork() and sys_getpid() functions to stop the overhead
Jeremy Allison [Tue, 2 May 2000 02:23:41 +0000 (02:23 +0000)]
Added sys_fork() and sys_getpid() functions to stop the overhead
of doing a system call every time we want to just get our pid.
(This used to be commit 148628b616b5c29ba6340d65fc3ddbcabba6e67a)

21 years agolocking/posix.c: Fixed double-free nasty crash bug found by insure.
Jeremy Allison [Mon, 1 May 2000 19:43:50 +0000 (19:43 +0000)]
locking/posix.c: Fixed double-free nasty crash bug found by insure.
utils/make_unicodemap.c: Insure 'make install' fixes.
(This used to be commit 3b25f7368be3877e9ad27498bc9451ec88d4b07f)

21 years agohandle tabs in printcap files
Andrew Tridgell [Mon, 1 May 2000 05:42:39 +0000 (05:42 +0000)]
handle tabs in printcap files

this is needed for lprng
(This used to be commit c40e0a5d3bfa11cb3699bdba1ded91515cabaf5d)

21 years agoallow a DEFAULT_PRINTING to be specified in CFLAGS
Andrew Tridgell [Mon, 1 May 2000 05:42:09 +0000 (05:42 +0000)]
allow a DEFAULT_PRINTING to be specified in CFLAGS
(This used to be commit 80ebb0ad5499745f988921eceb4584b43ef9aaf1)

21 years agofixed typo
Andrew Tridgell [Mon, 1 May 2000 00:48:41 +0000 (00:48 +0000)]
fixed typo
(This used to be commit 5341597de6772027034cad7dacbdbd6d2108332a)