Age | Commit message (Collapse) | Author | Files | Lines |
|
Jeremy.
(This used to be commit bc932b8ad4396f76b71c43efe9a6346f89c3632c)
|
|
an extra parameter. This cleans up quite a few places
we were passing it around without needing it.
Jeremy.
(This used to be commit 8f36def18e9f980e8db522e1de41e80cfd5f466e)
|
|
with Volker. Mostly making sure we have data on the incoming
packet type, not stored in the smb header.
Jeremy.
(This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
|
|
on a share (or global) and have the server reply with
ACCESS_DENIED for all non-encrypted traffic (except
that used to query encryption requirements and set
encryption state).
Jeremy.
(This used to be commit d241bfa57729bb934ada6beabf842a2ca7b4f8a2)
|
|
negotiation works.
Jeremy.
(This used to be commit d78045601af787731f0737b8627450018902b104)
|
|
Jeremy.
(This used to be commit c378c3edc1197d46c5d6eb2bcabbf9e774c03ffc)
|
|
Jeremy.
(This used to be commit c15819b75751a1e15cfed2ef94dae10ee72d769c)
|
|
(This used to be commit 0a1f524e8cce9bbe4fd10467c1f64f7a8862d298)
|
|
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
(This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
|
|
Jeremy.
(This used to be commit 46f3b04ddea4c63c6b37c7038d4bbd2ee1c9ca0c)
|
|
it may be a UNIX large writeX (which wraps len in that case).
Stevef this should fix your 128k write bug.
Jeremy.
(This used to be commit de2ebffa3c99ed28a3868fd956ef45629ca855b6)
|
|
I have a plan for dealing with the remaining..... Watch
this space.
Jeremy.
(This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
|
|
Jeremy.
(This used to be commit 95d01279a5def709d0a5d5ae7224d6286006d120)
|
|
statics. Part of my library cleanups.
Jeremy.
(This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
|
|
it with accessor functions. "One global or pstring a day...." :-).
Jeremy.
(This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
|
|
not smbd/server.c
Jeremy
(This used to be commit 8fbefe18a2dc23adb0ebe488cfb37ab4a382207d)
|
|
to zero). If non-zero, writeX calls greater than this
value will be left in the socket buffer for later handling
with recvfile (or userspace equivalent). Definition of
recvfile for your system is left as an exercise for
the reader (I'm working on getting splice working :-).
Jeremy.
(This used to be commit 11c03b75ddbcb6e36b231bb40a1773d1c550621c)
|
|
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
|
|
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
|
|
the main server code paths. We should now be able to cope with
paths up to PATH_MAX length now.
Final job will be to add the TALLOC_CTX * parameter to
unix_convert to make it explicit (for Volker).
Jeremy.
(This used to be commit 7f0db75fb0f24873577dcb758a2ecee74fdc4297)
|
|
This adds the two functions talloc_stackframe() and talloc_tos().
* When a new talloc stackframe is allocated with talloc_stackframe(), then
* the TALLOC_CTX returned with talloc_tos() is reset to that new
* frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
* happens: The previous talloc_tos() is restored.
*
* This API is designed to be robust in the sense that if someone forgets to
* TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
* resets the talloc_tos().
The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.
The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.
This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)
So, never do a
tmp_ctx = talloc_init("foo");
anymore, instead, use
tmp_ctx = talloc_stackframe()
:-)
Volker
(This used to be commit 6585ea2cb7f417e14540495b9c7380fe9c8c717b)
|
|
(This used to be commit 17df313db42199e26d7d2044f6a1d845aacd1a90)
|
|
Jeremy.
(This used to be commit 267a0ac48d358e1bd10d92238352ca3d867a58d4)
|
|
Jeremy.
(This used to be commit 4d01e0b7443aa4e4d450d705df5762d801172809)
|
|
Jeremy.
(This used to be commit dbd58dd647279def1681d88701e41d8a738c680a)
|
|
Jeremy, I really apologize for doing this, but I just wanted to enjoy
converting the last SMB call :-)
I've left one little task for you there, I'm not certain that checking
the inbuf length is correct here.
Volker
(This used to be commit 1e08fddafda11961f8855423b29c1f8a9a6b4457)
|
|
Talked to both Tridge and Jeremy about this, Tridge said that there is a
special error message persuading OS/2 to fall back to other methods.
The calls now checked in always return the error message we used to
return when "read bmpx = False" was set (the default): ERRSRV, ERRuseSTD.
If someone has a reproducable test case where this is really needed, we
can always dig it up from version control and convert it to the new API.
But that time without that silly parameter, and with a torture test case
for "make test" please :-)
Volker
(This used to be commit d941aae2dfd11609e807bf4ce712571a2e354627)
|
|
write one for this.
Jeremy
(This used to be commit edc17dfcbd21cccaffb76f4ae67fe4b06520f1a9)
|
|
(This used to be commit 6af85953465789594342f2d199ef5d29462cf34f)
|
|
(This used to be commit a8a33c377e38046b4103cf1d59032b97ab6bac9a)
|
|
(This used to be commit 0cb00c54750837ab2d2dc12e4947fedb7d38e878)
|
|
(This used to be commit a5af7ebb7f1d869659fbab187652e68ec4fafbb8)
|
|
(This used to be commit a64bc31098de8694b79eeafd3a226cf519700707)
|
|
(This used to be commit 6b0ad071d85ddd8fbf24386db11688bde49baf81)
|
|
(This used to be commit 1b6add251ca1db565a03407db30884132dd93e7d)
|
|
(This used to be commit 42b07a52b9f4fe147426e9156958cb4d33691678)
|
|
(This used to be commit e528479f56bc936cc60eb95c9738a48de48dbd05)
|
|
(This used to be commit 6def2ee03bb3510f000b1977c4d5293cad4ae364)
|
|
(This used to be commit 01c7426fc0e2af6a955dcb37111ca439fc913d5f)
|
|
(This used to be commit 212f43ddeaa6369e5437ed3915eb066a37bc9014)
|
|
(This used to be commit 30aada0ef8e16ce94035039b63ab140d158009d9)
|
|
(This used to be commit 244965f7b67becb85774311e6ce84318d554384d)
|
|
(This used to be commit bd228853863ce5b4b9b974347c50c956d7f2e055)
|
|
(This used to be commit 3cc22fd74f0ffc72f4340a963b4eca7178be2192)
|
|
(This used to be commit 56bab5ea4cbcf8e46101053bd68f66691fd737c5)
|
|
(This used to be commit 1a08b97a933e25362707cb0d8ba09d733af4cbbf)
|
|
(This used to be commit fa341e4840d422cee389c06112e0b2df43a31f45)
|
|
(This used to be commit 394987f5224086cb379ea8d0364924679b8a0214)
|
|
(This used to be commit bce87ebdc00b9086dcdcc55442b57b92345971ac)
|
|
(This used to be commit cb8fab5663db2cb408e1b85a7287d3670b09d503)
|