James Peach
c61db93c7e
r21949: After discussion with the Apple and Linux client maintainers,
...
changing the FindFirst response for the UNIX_INFO2 level to include
a length field before the name. The name is not required to be null
terminated. the lenght field does not count any null.
(This used to be commit eef672bfff6b112ceceec2a58c78042352e83276)
2007-10-10 14:49:39 -05:00
James Peach
754d416ea5
r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
...
QueryPath and FindFirst calls. Add a new torture test to verify the
server side.
(This used to be commit 7f56da2d1fa0718e5282bb4aea7d9a63a62f0bc7)
2007-10-10 14:49:16 -05:00
James Peach
fcaeedeff3
r21668: Add SMB_QFS_POSIX_WHOAMI to trans2.h so it's easy to find. Add
...
convenience API to create an anonymous credential. Don't clobber
cmdline_credentials in the UNIX-WHOAMI test.
(This used to be commit 73cea4e0c66f57057ed12b07bbb94b4e783ba6bf)
2007-10-10 14:49:07 -05:00
Andrew Tridgell
21650cf377
r21206: - a couple more nttrans places were a memcpy() should be used
...
- changed the setup array in nttrans to be a uint8 array, instead of a
uint16 array. This makes it clearer that it is the job of the caller
to do any byte swapping within that data
(This used to be commit fa3c9b29ae1c7c6a9bc97484cc386aeec9b5d266)
2007-10-10 14:44:45 -05:00
Volker Lendecke
2342219d69
r21183: Commit the big/little endian fix for nttrans setup[] handling.
...
Please check!
For code symmetry reasons, trans2 might also see this fix, but this is left to
the interested reader :-)
Volker
(This used to be commit f2d364ebe69fc5d624e456cc7d941071811a5567)
2007-10-10 14:44:43 -05:00
Jelmer Vernooij
c471abbcfe
r20963: remove unused functions, run LOCAL-TDR by default
...
(This used to be commit 0f34c67fff53d5bd3c1b5a5618190ad7154e8d07)
2007-10-10 14:44:04 -05:00
Andrew Tridgell
1c211a2e43
r20650: revert a bunch of code I didn't mean to commit yet
...
(This used to be commit b3e2d4908781781a487eaeb683d22eb967e5597d)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba
r20647: add cluster code
...
(This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)
2007-10-10 14:37:24 -05:00
Andrew Tridgell
c72c3e9834
r20077: support large readx replies, as done by samba3 (and the snia spec),
...
but not done by windows servers
(This used to be commit e5dbbe177c13b2788b4b4765b3b37cc918b3405c)
2007-10-10 14:29:01 -05:00
Andrew Tridgell
921f73c7e5
r18835: expand IO limits on SMB2. Samba4 now tops out at 16.7MB IOs.
...
(This used to be commit 1e34e4d5a1fd3d74080424140e4ab276b6042d12)
2007-10-10 14:19:16 -05:00
Andrew Tridgell
30ee8beb93
r18301: I discovered how to load the warnings from a build farm build into
...
emacs compile mode (hint, paste to a file, and compile as "cat
filename").
This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84efff735bb0ca941ac4b755ce2b0591667)
2007-10-10 14:18:04 -05:00
Andrew Tridgell
1b5c28a627
r18211: wct is not a size, so don't use size_t
...
this should fix a pile of printf format warnings
(This used to be commit fe209e360e3857f39355335e4fa6a43b2db23038)
2007-10-10 14:17:50 -05:00
Jelmer Vernooij
0329d755a7
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
(This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
440d0487a6
r17020: pass the real error to the failing requests
...
metze
(This used to be commit 49b96ac44a883c020c69df7a12df154dc4faa4d5)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a8958391e8
r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
...
- parse SMB2 Notify reponse
metze
(This used to be commit de50e0ccddfad16ad7b254770f4c52c1abe707b9)
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
5468516f9a
r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
...
the operation doesn't need a valid file handle in that case
metze
(This used to be commit d41a83d55945b07020349339888f3a34ac4eff4e)
2007-10-10 14:10:00 -05:00
Stefan Metzmacher
a3797ff66a
r16875: implement SMB2 Find in the frontend
...
metze
(This used to be commit 58bed7322c7e552d0462a11ce5d46a282c31f8f7)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
bb158b74da
r16871: zero padding bytes
...
(found by valgrind)
metze
(This used to be commit 283bec8295b6302dfe3dc12c82d7870bdfee8b37)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
af0a9eb529
r16834: split the level's of smb_search_first/smb_search_next and the levels
...
of smb_search_data
metze
(This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9)
2007-10-10 14:09:49 -05:00
Stefan Metzmacher
63d0c5a057
r16708: the packet format of SMB2 SessionSetup has changed,
...
there're 8 more unknown bytes...
Note:
- vista-CTP also support this as a server,
but uses the old format as client
- but vista-beta2 only uses and accept the new format
metze
(This used to be commit b3bdd4afdefc9ad3550f86a0aa6e6c90bf8ab416)
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
d63dd113ae
r16699: the layout of SMB2 Read and Write is identical...
...
so we know that the 9th bytes is just uninitialized padding
metze
(This used to be commit f97a21b970ed23973cced2c67b5bc9ecd7afee88)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
332f5b19a1
r16667: - use ndr_pull_struct_blob() to make the RAW_FILEINFO_SEC_DESC pull code
...
simpler
- use ndr_push_struct_blob() for RAW_SFILEINFO_SEC_DESC
metze
(This used to be commit 79e51f033e680303431e56e818346b66a836d044)
2007-10-10 14:09:37 -05:00
Volker Lendecke
7613015f47
r16091: Without this patch Samba3 will not accept this, and simply setting the "92" to
...
"100" will give funny permissions...
Volker
(This used to be commit b76a3d4f590963d48eae8a9899d17ae3833c3dfa)
2007-10-10 14:08:59 -05:00
Andrew Tridgell
971d30bb20
r15854: more talloc_set_destructor() typesafe fixes
...
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
2007-10-10 14:08:32 -05:00
Andrew Tridgell
0b56e916a7
r15835: fixed locking in the client library
...
(This used to be commit 7ea51fb624ded55f69f235a6791de871f754e8fa)
2007-10-10 14:08:31 -05:00
Stefan Metzmacher
d9bdfb0a07
r15814: add SMB2 Lock interface structure
...
metze
(This used to be commit 8f1850ef65dc8c860912639d787d82399d015f13)
2007-10-10 14:08:27 -05:00
Stefan Metzmacher
26047265cc
r15756: handle RAW_OPEN_SMB2
...
metze
(This used to be commit 8aebd7adc9a0288ebf6b8d84fc376d699054a520)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
e306c5bf12
r15741: move smb2 request structures into the main smb request structs
...
as new levels
metze
(This used to be commit 91806353174704857dfcc15a730af7232cfde660)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
2de1d5f7a8
r15740: add TODO, that we should check if the server supports
...
large offsets, before sending large offset requests
metze
(This used to be commit b9ba2b8c5a314ba9e559e50bea4deb692dc0f3ec)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
b77eaaa3bc
r15737: fix a typos and comment
...
metze
(This used to be commit 1f50b2e0534ee25861b6812b64d91f63cbb118ad)
2007-10-10 14:08:10 -05:00
Stefan Metzmacher
7f0e17e903
r15718: - split the SMBflush with the 0xFFFF wildcard fnum into a different level
...
metze
(This used to be commit 95bf41b4d4ec96349802955e364fe44ef85f9077)
2007-10-10 14:08:09 -05:00
Stefan Metzmacher
c18cd54bad
r15688: windows sends 4 as max_setup count on NT IOCTL
...
metze
(This used to be commit 0d983fa46fff588cf94e58732e36e324e2f0478a)
2007-10-10 14:08:06 -05:00
Stefan Metzmacher
5ff4b74df3
r15656: for NT IOCTL's we need to control the max_data field for some calls
...
metze
(This used to be commit 3cab02f6f513cf7eb3d8863e62952766bb4d908f)
2007-10-10 14:08:04 -05:00
Stefan Metzmacher
7e7a760b4b
r15643: add some FSCTL_ codes
...
metze
(This used to be commit 47dc1ed25323e76b93d9cef2a389726734d2e735)
2007-10-10 14:07:26 -05:00
Stefan Metzmacher
410fb90322
r15640: - NT IOCTL calls also have an 'in' data_blob
...
- fix the receive code of NT IOCTL's we only need the NTTRANS data payload
not the SMB payload here
metze
(This used to be commit 358d03143f0a78344c1af720e33ebe2619df09df)
2007-10-10 14:07:25 -05:00
Stefan Metzmacher
bb58d8497a
r15638: add a usefull macro to get a pointer the smb_handle union
...
of smb_open, as it's not nicely alligned for all levels,
If someone has an idea for a better solution where we can access
it via op->generic.out.file.* please let me know:-)
metze
(This used to be commit d0a7408280c35dc4a5a21cbbded895c6c83819e6)
2007-10-10 14:07:25 -05:00
Stefan Metzmacher
c3958aa231
r15505: - add 'generic' alias to smb_seek and smb_flush
...
- add struct ntvfs_handle pointer to smb_file, this will
later be used by the ntvfs backends
metze
(This used to be commit 8322fc70adbb951ad72b97dfcc91467c1d906afe)
2007-10-10 14:05:43 -05:00
Jelmer Vernooij
5c3a1d76ff
r15379: Fix shared library build's unresolved dependencies
...
(This used to be commit 0fafa2e59566f8f892d7dfd7dd33d0100b96a780)
2007-10-10 14:05:29 -05:00
Jelmer Vernooij
20b3b0f2e3
r15338: Fix build of most things with shared libs enabled.
...
(This used to be commit 8985093d3fba90287bd739aaaa0fbfdadca2b999)
2007-10-10 14:05:18 -05:00
Jelmer Vernooij
0eddf14b30
r15191: Avoid uint_t as it's not standard.
...
(This used to be commit 7af59357b94e3819415b3a9257be0ced745ce130)
2007-10-10 14:04:15 -05:00
Stefan Metzmacher
acc0516742
r15121: fix pushing of the FLAGS2_READ_PERMIT_EXECUTE flag in the
...
"readx.read_for_execute = True" case.
metze
(This used to be commit f30f9cd3285f75ac8cbbe8dc5a476fe6a714a2e3)
2007-10-10 14:04:10 -05:00
Andrew Tridgell
eae0b77a6e
r14974: work around an ibm checker bug
...
(This used to be commit 2031e07a8a14d83ab621f8baaae6b4e1425667d7)
2007-10-10 14:00:49 -05:00
Andrew Tridgell
7789fa412d
r14973: req cannot be NULL in smb_raw_t2open_recv() (found by IBM checker)
...
(This used to be commit c2cde823ee004b53707acd1390d25fa9856b5179)
2007-10-10 14:00:48 -05:00
Stefan Metzmacher
508ba6026a
r14859: fix bugs noticed by the ibm code checker
...
metze
(This used to be commit afa8f944a7c572becd011b8c248eef13d7495ac7)
2007-10-10 13:59:43 -05:00
Jelmer Vernooij
35349a58df
r14542: Remove librpc, libndr and libnbt from includes.h
...
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10 13:58:42 -05:00
Andrew Tridgell
9225c02aee
r14539: get rid of a pointless union layer in struct smb_notify
...
(This used to be commit 1e1c5593817e84c59c1a10b5a3c1957e363e5198)
2007-10-10 13:58:41 -05:00
Jelmer Vernooij
5b0051e032
r14511: Install more headers
...
(This used to be commit e1f896948fad8cf5a1aec300865c250c5721ee7d)
2007-10-10 13:57:35 -05:00
Jelmer Vernooij
8528016978
r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
...
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10 13:57:27 -05:00
Andrew Tridgell
f479571502
r14413: don't do memcpy of length 0
...
(This used to be commit c43a7ec7ac3bcb3001d046615ca17a9ce083a2b0)
2007-10-10 13:57:20 -05:00
Stefan Metzmacher
add7ba54c1
r14372: fix bug found by sparse
...
metze
(This used to be commit da1ac9b2243d0217c2d29879d885d62be9ddd290)
2007-10-10 13:57:15 -05:00