Andrew Tridgell
1772584c35
actually obey the "use mmap" smb.conf option
...
(This used to be commit b36c98036bcbaa5545c9637cb632361122033cfd)
2001-09-06 05:45:07 +00:00
Tim Potter
b31055fa74
Logon workstation checks from Toomas Soome <tsoome@ut.ee>
...
Fixed compile warning.
(This used to be commit 3eee66516596835c70c8d652ca633d2e1158fbb7)
2001-09-06 05:24:37 +00:00
Andrew Tridgell
e3d79bb0c8
enable strict locking by default. This will be slow, so now we just
...
need to fiind a way to make it fast
(This used to be commit 42b147d1f26093c45110077a309c5e0d3010a28d)
2001-09-06 01:22:17 +00:00
Andrew Tridgell
dd9b2f3b2f
it turns out that XP agrees with the samba head branch over the right
...
error codes for locking, so fix the test rather than fixing samba
(This used to be commit a583af3c2f5d1962495a0f18b671e34d6ff43511)
2001-09-06 01:21:09 +00:00
Andrew Tridgell
9ef7a6c786
use NTSTATUS not BOOL in do_lock()
...
(This used to be commit b1b2a5fa5d084dad8ae47777419ab75db1e51eff)
2001-09-06 01:19:35 +00:00
Jeremy Allison
851e60c382
Removed unneeded set of delete on close in fsp->share_mode.
...
Jeremy.
(This used to be commit 7816f79075132350c910f75f9b757477a319bbae)
2001-09-05 23:34:41 +00:00
Jeremy Allison
11f0402a74
Fix I think for the fcntl spinning problem. Re-prioritize so
...
that oplock break messages get priority over incoming client messages.
Jeremy.
(This used to be commit 1779f6a223dad87c3b8451d09b9808b46495a8b6)
2001-09-05 22:45:48 +00:00
Andrew Tridgell
4f0509aeeb
2nd DELETE_ON_CLOSE_FLAG fix ...
...
we set the DELETE_ON_CLOSE_FLAG on all share modes on the file, which
means the share mode in the fsp will not match the one in the tdb when
we come to close for other file handles, which means we end up with
share modes on files after all handles are closed
fixed by making the comparison function that says if two shares modes
are equal ignore the DELETE_ON_CLOSE_FLAG
(This used to be commit 7b39c4c59897669106d7129bad8af3d592d25838)
2001-09-05 21:39:43 +00:00
Andrew Tridgell
627b1d0a61
when you update the share mode in the db you must also update
...
fsp->share_mode otherwise the check to see if the fsp share mode
matches the one in the db will fail when you come to delete it,
thus leaving us with a share mode on a file that isn't even open!
(This used to be commit 2020738b889d8d508cf787e5c5d380af817b92f9)
2001-09-05 21:13:58 +00:00
Andrew Tridgell
387f1fd09c
fixed formatting to make the code vaguely readable. It's still a dogs
...
breakfast, but at least you can follow the indents
(This used to be commit 9955ea0aaa299c6c946b4e7b7e98017c39b60bc8)
2001-09-05 21:11:52 +00:00
Herb Lewis
afd0ba9d92
add PROFILE_OBJ to nmbd now
...
(This used to be commit 99b773217c001b8b89e72561f3ece46bb4ea553e)
2001-09-05 20:06:33 +00:00
Herb Lewis
7528728071
merge profile data changes from 2.2
...
(This used to be commit c105859304e93297fa29f346e9cbd1af0c95048b)
2001-09-05 18:43:55 +00:00
Herb Lewis
dff3c815e2
always include profile support so you do not need a different binary of
...
smbstatus to dump profile stats.
(This used to be commit fc048955b8af05779992bc111f9bd690b8a8faf2)
2001-09-05 18:01:48 +00:00
Herb Lewis
283b15bcd7
add profiling stats from 2.2
...
(This used to be commit 6c333e9d922b3a7443db829277b8a209cce2d350)
2001-09-05 17:58:24 +00:00
Herb Lewis
c36dd96b90
variable name changed to --with-profiling-data
...
(This used to be commit 28fba1ba4883e5eaa97247e933da9311c53c41df)
2001-09-05 17:39:51 +00:00
Jeremy Allison
00973eb50e
When sending a message via a tdb, it must be open read/write.
...
Jeremy.
(This used to be commit f35887c7d40ced750596b87bf37f7aae1df68c7a)
2001-09-05 17:23:51 +00:00
Andrew Tridgell
d53d5beeb2
use cli_is_error() instead of looking in smb_rcls, otherwise NT status
...
codes don't work correctly
(This used to be commit 55d5828e608671f070a9e96938be0d16d50aeb26)
2001-09-05 11:32:59 +00:00
Andrew Tridgell
851a06e1fd
added filename to error_packet()
...
(This used to be commit 2c424788dec2fd6e44c243ea115d66689dfae6c0)
2001-09-05 10:18:58 +00:00
Andrew Tridgell
fbe6685a79
fixed some compilation errors in cli_netlogon.c - tim, you need to rerun configure to get the new NTSTATUS stuff right
...
(This used to be commit 9bae57cfe30825174536d11983bb3434498e3f03)
2001-09-05 08:54:04 +00:00
Andrew Tridgell
7844aa868b
more warning fixes on solaris
...
(This used to be commit c04c67fec85b1c81ef0b3cebacde304a1de0d854)
2001-09-05 08:11:17 +00:00
Andrew Tridgell
7deed93dd7
fixed a bunch of compilation errors on Solaris, mostly people getting NSS_STATUS and WINBINDD error codes mixed up
...
(This used to be commit 66698d6b841df809a8654012a8385bffacb9dc4a)
2001-09-05 07:55:54 +00:00
Tim Potter
f6b531895e
Merged cli_net_req_chal() and cli_net_auth2() from rpc_client/cli_login.c
...
except they are called new_cli_net_req_chal() and new_cli_net_auth2()
until they are working properly.
(This used to be commit 4ca085f253fc39de60115edc049e91d5c95735ef)
2001-09-05 04:46:21 +00:00
Tim Potter
9dfa2edd7c
oh foo
...
(This used to be commit 66c7bb9467c1acaf7e5b310a2ebc753f455b18c9)
2001-09-05 04:33:25 +00:00
Tim Potter
9888362b39
Don't crash if run with no command line arguments. (-:
...
(This used to be commit a46e9cc3a1a247fba8fe9b4cdfa16954071b4a35)
2001-09-05 04:30:53 +00:00
Jeremy Allison
d3518f1d8a
NFS v2 can return ENOLCK when greater than 31 bit offsets are used.
...
Treat this the same as an EFBIG error.
Jeremy
(This used to be commit 8fad5177701c1738a7f5bdd7c0082ef23a00b876)
2001-09-05 00:05:07 +00:00
Andrew Tridgell
1f5203cd24
don't do pointer arithmetic on void* (some compilers can't do it)
...
(This used to be commit c65e8db7ae765f844f8b0adb1e5de3651561ad96)
2001-09-04 20:34:02 +00:00
Jeremy Allison
15472c4ee7
Fixes to ensure invalid vuids cannot stop oplock breaks.
...
This may have bearing on the Solaris fcntl spin bug.
Jeremy.
(This used to be commit 0f676202529cbfead629d2c228b7d5abc2dff7d6)
2001-09-04 19:58:01 +00:00
Jeremy Allison
7e75921e24
Merge of transfer file code from 2.2, fix for readbraw.
...
Jeremy.
(This used to be commit c05e79453655abb67fd47a2d3dba88b4c5377e35)
2001-09-04 19:10:30 +00:00
Andrew Tridgell
cefa698c72
fixed compilation of torture
...
(This used to be commit aaf538a83057150cc35e9032aff7a78e8f0c4dc2)
2001-09-04 11:52:42 +00:00
Andrew Tridgell
ed3fbafdd3
cope with pam being off
...
(This used to be commit 5f6e7bbce76c85571ee10a3f8b5bbbd0beadb632)
2001-09-04 11:39:57 +00:00
Andrew Tridgell
b04933dfbb
a fix for fussy compilers
...
(This used to be commit 78f437b5073207606b23be42960e2b10f785a148)
2001-09-04 11:18:50 +00:00
Andrew Tridgell
c76dd14040
it now all compiles - so try enabling it by default and see what explodes on the build farm
...
(This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)
2001-09-04 10:57:29 +00:00
Tim Potter
b5b9c46c0f
Don't overwrite an existing /etc/xinetd.d/swat on install file since we
...
don't overwrite it on upgrade.
Does this make sense?
(This used to be commit 90b3dccfd421bac6516c298f85fcccc857c57989)
2001-09-04 07:43:50 +00:00
Tim Potter
8c569f70ee
Welcome to tpot's exploit world!
...
- put in checks for return values in rpc parsing routines
- replace a bunch of stupid &(foo->bar) with &foo->bar
- fixed bug in net_io_sam_alias_mem_info where there are zero members in
the alias
(This used to be commit eecdba2b015ed48d7dd88daea2af466f28cd2ff7)
2001-09-04 07:24:13 +00:00
Andrew Tridgell
19fea3242c
the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work
...
(This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
2001-09-04 07:13:01 +00:00
Tim Potter
55cf37488f
Fixed some compiler warnings.
...
(This used to be commit 06608971ed95c02188a1b2bf7b1f9a2845e04022)
2001-09-04 06:16:01 +00:00
Andrew Tridgell
fbc1f326f4
more NTSTATUS/WERROR conversion
...
(This used to be commit ad648c5cd8ebe4be8304379117f403d7673dcbc8)
2001-09-03 10:38:13 +00:00
Andrew Tridgell
2771d77c60
tidied up some unused vars in JFs new fns
...
(This used to be commit e26502b1f840cd0fafd700c9756b610b38709ce2)
2001-09-03 08:54:24 +00:00
Andrew Tridgell
fd6ea43161
the next step in our error code handling change
...
- added WERROR for win32 error codes
- added a configure test for immediate structures
still lots to do, so its not enabled by default, but the main
structure is there
(This used to be commit 24f9ab683dec52587ee56717e821b49c0fa3d70f)
2001-09-03 08:50:59 +00:00
Andrew Tridgell
95739423d0
updated copyright for Michael Sweet
...
(This used to be commit 9d53473f302f172c10854b8df3000552918d0637)
2001-09-02 22:39:03 +00:00
Andrew Tridgell
819f5ea0d5
use a name not a number for ERRinsufficientbuffer
...
(This used to be commit 8e70666fccde1025d77e4db51b5b63e5142d98ec)
2001-09-01 23:08:08 +00:00
Andrew Tridgell
bd7ba65dda
more NTSTATUS changes
...
(This used to be commit 8a49b2f7df46b2c990a980758fe1f3871e8b578e)
2001-09-01 23:06:57 +00:00
Tim Potter
d01c23680a
Set acb_info to ACB_SVRTRUST if we are joining the domain as a BDC without
...
going through the server manager.
(This used to be commit 52f5abae4667d841be7ca8f5ff0f25ba6d027067)
2001-08-31 05:48:37 +00:00
Andrew Bartlett
b4ed8c8365
Fix up some compile issues. We can't have C99 comments and add a smattering
...
of const.
(This used to be commit af53e774d754d72b01d9840e8b45d27bc394e33d)
2001-08-31 03:38:48 +00:00
Tim Potter
80f853772a
Added samsync binary to list of ignored files.
...
(This used to be commit 604468c6eedfa7a8ac62800cf7cf73cbd969ae45)
2001-08-31 02:32:57 +00:00
Simo Sorce
137fb61490
changed the data format in the tdb, as the time fields were not
...
managed correctly.
this mean you need to rebuild your passdb.tdb file.
(This used to be commit 57b8d3bb84e261e55febdde88e45684455f0a294)
2001-08-31 01:29:53 +00:00
Jeremy Allison
4bd774f458
Fix crash bug with indirecting through null pointer on recursive delete.
...
Jeremy.
(This used to be commit a6f04d16613a06c1aafa89d7373d1e4b4a5fb45b)
2001-08-30 22:20:02 +00:00
Jeremy Allison
58ed70f378
Fixed silly typo.
...
Jeremy.
(This used to be commit 6ee2b41429e43f6a9a58eba3cb01b952be3d5ca5)
2001-08-30 20:09:49 +00:00
Jeremy Allison
8debe5b629
Fix from Paul Green to set correct lengths.
...
Jeremy.
(This used to be commit 52b9b6d519c38b2a3e524d098a09fb996e8a2047)
2001-08-30 19:16:56 +00:00
Herb Lewis
e555b969b2
if no ACL elements then use chmod - fixes ability to set read-only bit
...
on files that do not have an ACL
(This used to be commit 65ea13420c78cf0a8c01f14c08815e4b44ca4abc)
2001-08-30 18:56:35 +00:00