summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* r3314: added a option "socket:testnonblock" to the generic socket code. IfAndrew Tridgell2007-10-108-17/+34
| | | | | | | | | | | | you set this option (either on the command line using --option or in smb.conf) then every socket recv or send will return short by random amounts. This allows you to test that the non-blocking socket logic in your code works correctly. I also removed the flags argument to socket_accept(), and instead made the new socket inherit the flags of the old socket, which makes more sense to me. (This used to be commit 406d356e698da01c84e8aa5b7894752b4403f63c)
* r3313: in socket_accept() make the new socket non-blocking unless ↵Andrew Tridgell2007-10-102-0/+16
| | | | | | SOCKET_FLAG_BLOCK is set. (This used to be commit a2d92aa431e0e9752387eebe741d9e6f376f74d7)
* r3312: in the brlock code, we prevent lock stampedes by attempting to notAndrew Tridgell2007-10-101-1/+3
| | | | | | | wakeup all pending locks at once. This change means that we only trigger this anti-stampede code for write locks, as for pending read locks the correct behaviour is to stampede (as they will all succeed) (This used to be commit 8021d1d74207db1204139309592b9d2f80f2bd0e)
* r3311: Consistency updates for form name members.Tim Potter2007-10-102-35/+96
| | | | | Add tests for EnumForms, GetForm, AddForm, DeleteForm. (This used to be commit 6c49ce976a5c6982fa83de4ea723cef5597c29ef)
* r3310: Update dependencies for swig wrappers.Tim Potter2007-10-101-1/+3
| | | | (This used to be commit 5dcb300fca592cc62d325c47c857b046c90e7b42)
* r3309: Add wrapper for dcerpc_server_name() function.Tim Potter2007-10-101-0/+2
| | | | (This used to be commit 2d60a04f21da9dbe32c85b11afa98df74f5fd763)
* r3308: Handle servers that don't have samr_Connect5.Tim Potter2007-10-101-4/+11
| | | | (This used to be commit 52af866ffb427427d21daf11a4ca9a8b9881f1d5)
* r3307: fixed the send side of the smb_server code to be non-blocking. ThisAndrew Tridgell2007-10-103-18/+49
| | | | | means the whole of the SMB handling code is now non-blocking. (This used to be commit 30acedb943f0170d30e7b08925280d0dffc7873e)
* r3306: the main smb server code now handles non-blocking socket receives. IAndrew Tridgell2007-10-102-47/+81
| | | | | | haven't marked the socket non-blocking yet as I haven't checked that the send path is OK for non-blocking. (This used to be commit bda978cc2a921a888534054135b9325427425dd2)
* r3305: added ncalrpc to the list of rpc transports tested by test_echo.sh, soAndrew Tridgell2007-10-101-1/+1
| | | | | it gets regularly tested when I make changes. (This used to be commit e4216da824c8186df956d05742d96da05393c719)
* r3304: changed the API to lib/socket/ a little.Andrew Tridgell2007-10-1010-116/+108
| | | | | | | | | | | | | | | The main change is to make socket_recv() take a pre-allocated buffer, rather than allocating one itself. This allows non-blocking users of this API to avoid a memcpy(). As a result our messaging code is now about 10% faster, and the ncacn_ip_tcp and ncalrpc code is also faster. The second change was to remove the unused mem_ctx argument from socket_send(). Having it there implied that memory could be allocated, which meant the caller had to worry about freeing that memory (if for example it is sending in a tight loop using the same memory context). Removing that unused argument keeps life simpler for users. (This used to be commit a16e4756cd68ca8aab4ffc59d4d9db0b6e44dbd1)
* r3303: Call pull function for correct type instead of spoolss_PrinterInfo whenTim Potter2007-10-101-1/+1
| | | | | unmarshalling arrays. (This used to be commit ee535b6801e553d0a180f18cc2c4b4438ee23de1)
* r3302: The security descriptors in spoolss_PrinterInfo2 and spoolss_PrinterInfo3Tim Potter2007-10-102-8/+55
| | | | | | | need to be marked as subcontext(0). GetPrinter tests now work for all info levels! (This used to be commit 53bd02960e17f7517e0d6c4f489d27b8bdcc7582)
* r3301: Simplify codeJelmer Vernooij2007-10-107-245/+72
| | | | (This used to be commit dcdc6666d55c1ad006a5a4e58b337874478a66a4)
* r3300: initialise *sendlen on failure, to allow for callers to check only forAndrew Tridgell2007-10-101-0/+2
| | | | | NT_STATUS_IS_ERR() (This used to be commit 80a109de8458420ac0b40c563f4b3bc51424d759)
* r3295: Fix for SMB signing with 56-bit DES session keys. From Nalin ↵Jeremy Allison2007-10-101-2/+11
| | | | | | | Dahyabhai <nalin@redhat.com>. Jeremy. (This used to be commit afed78f359a15809b2d9b7566e16ade294944fa9)
* r3291: fix the build, thx to pipitas for finding thisStefan Metzmacher2007-10-102-6/+7
| | | | | metze (This used to be commit d331a83f08b492ea463fb8781b4c46a71f80bf42)
* r3290: allow SID_ANONYMOUS ( "S-1-5-7" ) to be the users sidStefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit 177afd4855c66f46c82899b46f030803be63d52a)
* r3289: Mr. L. and Mr. B.!Stefan Metzmacher2007-10-102-8/+6
| | | | | | | can we decide to not break WinXP clients:-) metze (This used to be commit 5eb0ff78d5e68f488a439545fdaec90c28ef877a)
* r3288: - updated the path processing in pvfs to pass the RAW-CHKPATH test. ThisAndrew Tridgell2007-10-104-243/+126
| | | | | | | | | | | rather extensive test reveals some really bizarre error code handling in w2k3. - extended and simplified the RAW-CHKPATH test, making it easier to read (note that Samba3 fails the new tests - jra may wish to look) - marked RAW-CHKPATH as pass for pvfs (This used to be commit 32dccf91cfa5b57f84dd6307720b3f45faa10ae0)
* r3287: The devicename and formname fields in a device mode are fixed lengthTim Potter2007-10-101-2/+2
| | | | | | strings. Not sure how to write this as idl which maps to a char * but at least devicemodes can be pulled off the wire sucessfully. (This used to be commit dd20730a09935b0783b020a020ed9283ca1e4608)
* r3286: filled in more missing SV_TYPE_* definesAndrew Tridgell2007-10-101-1/+11
| | | | (This used to be commit 891d87a71203fcee504875976a4ee61b84579c83)
* r3285: fixed another IDL typoAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 4545ac9bfabf4af4b44cb72f30ed93273d9cdc37)
* r3284: - don't use a enum for bit-fields. It isn't legal C (as C is limited toAndrew Tridgell2007-10-102-68/+32
| | | | | | | | | | | signed integer values for enum), and it is also very confusing to read. Also, please align defines nicely. The value of SV_TYPE_DOMAIN_ENUM was defined incorrectly, which became obvious when you align the defines, but wasn't at all obvious in the original code. - removed redundent defines in smb.h (This used to be commit fe042b8e5ca15dfd986bc0c05d464214a51cc0cf)
* r3283: converted to quoted uuid() defines in all our IDL. This should helpAndrew Tridgell2007-10-1037-63/+63
| | | | | the build on systems like solaris with the SunPRO compiler (This used to be commit fe913ad11bf1c5e9fe04ed769a93b0ea16aa0a34)
* r3282: some C pre-processors don't like expressions likeAndrew Tridgell2007-10-103-2/+14
| | | | | | | uuid(1ff70682-0a51-30e8-076d-740be8cee98b) so we now accept uuid("1ff70682-0a51-30e8-076d-740be8cee98b") in pidl, and automagically add quotes only if needed (This used to be commit 4aab2cb210eb9678bb72aebb33dcf6fd499206c1)
* r3281: some compilers can't handle empty structures, so for empty IDLAndrew Tridgell2007-10-101-0/+6
| | | | | structures generate a single _empty_ element in the header (This used to be commit 00ff1ca1d284bb698e98c773b18a29695e927605)
* r3280: fixed byte order of rhs IPAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 29fab12d0b1649046ab2abb08b51f9845c8f8116)
* r3279: Removed MSG_DONTWAIT flags as many platform don't have it.Andrew Tridgell2007-10-102-19/+1
| | | | | | | | | | | If a socket is non-blocking then adding MSG_DONTWAIT is pointless (it does nothing), so all we lose is the ability to set non-blocking on a packet-by-packet basis, which is not a very useful thing to have anyway if the socket is blocking then the code already adds MSG_WAITALL, so MSG_DONTWAIT is also not needed in that case. (This used to be commit b8a2afae67691a609b4a7a577fee3f9518adc9d2)
* r3278: - rewrote the client side rpc connection code to use lib/socket/Andrew Tridgell2007-10-1020-420/+198
| | | | | | | | | | | | | | | | | | | | rather than doing everything itself. This greatly simplifies the code, although I really don't like the socket_recv() interface (it always allocates memory for you, which means an extra memcpy in this code) - fixed several bugs in the socket_ipv4.c code, in particular client side code used a non-blocking connect but didn't handle EINPROGRESS, so it had no chance of working. Also fixed the error codes, using map_nt_error_from_unix() - cleaned up and expanded map_nt_error_from_unix() - changed interpret_addr2() to not take a mem_ctx. It makes absolutely no sense to allocate a fixed size 4 byte structure like this. Dozens of places in the code were also using interpret_addr2() incorrectly (precisely because the allocation made no sense) (This used to be commit 7f2c771b0e0e98c5c9e5cf662592d64d34ff1205)
* r3277: don't use the non-portable getaddrinfo() function, instead useAndrew Tridgell2007-10-101-18/+3
| | | | | | interpret_addr() and if someone wants to add support to that function for ipv6 then they are welcome to. (This used to be commit 50377db11bb727b407744e0c50805c8f90810c16)
* r3276: - allow for more than 256 open old style searches (limit currently ↵Andrew Tridgell2007-10-103-28/+219
| | | | | | | | | | | set at an arbitrary 5000) - auto-cleanup old searches that the client forgot to close (common with old searches) - expanded the RAW-SEARCH test to test more than 256 old searches, and old search rewind (w2k3 fails this - it appears to not support rewind on old style searches) (This used to be commit bc83d823b2140a10007490bf0101843a886f99a6)
* r3271: use "struct messaging_context *" instead of "void *" in messaging APIAndrew Tridgell2007-10-106-33/+32
| | | | (This used to be commit cc93813e4a09c538ad485dc2b3cb4c9be34f3d18)
* r3270: - added another unlink testAndrew Tridgell2007-10-102-1/+5
| | | | | | - removed BASE-TRANS2 from the list of tests to be worked on (its already in the "passes" list) (This used to be commit 8ba10229c3860b955de698c3e2660cf6d18e2f22)
* r3269: fixed return valueAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit bc392d88b1fa34edfc922f43e190da003160a7d2)
* r3268: - fixed wildcard handling in new dirlist codeAndrew Tridgell2007-10-101-12/+41
| | | | | - ensure that d_name from readdir is not used after closedir (This used to be commit 5352613342c58192ae00618977041b98cd0ff7b6)
* r3267: make LIBTDB depend on LIBREPLACE. This is needed for building the tdb ↵Andrew Tridgell2007-10-101-0/+2
| | | | | | tools on Solaris. (This used to be commit c5d338d06137fe7464849df02671d8ab833e3b4e)
* r3263: - pvfs now passes RAW-SEARCHAndrew Tridgell2007-10-101-2/+2
| | | | (This used to be commit e5a0763655d8ccb929d2bf39bf099449b0dfcee7)
* r3262: - new pvfs_dirlist code that reopens the directory between searchAndrew Tridgell2007-10-104-101/+176
| | | | | | | | calls. This is needed to allow for "new files appear during a search" behaviour - pvfs now passes RAW-SEARCH (This used to be commit 0d98f7653a1d58510a6cd4c2ac6c5e05c541109c)
* r3261: added seek to RAW-SEARCH testAndrew Tridgell2007-10-102-15/+23
| | | | (This used to be commit 05530bfb99011db8a00f5debcf8eec19b5e8a5d6)
* r3260: redid the pvfs_dirlist() interface in preparation for a "keepAndrew Tridgell2007-10-103-55/+79
| | | | | | directory open" implementation, as opposed to the "load the whole directory" interface used now. This will be needed to pass RAW-SEARCH (This used to be commit 692623c6c0a2c6817fddfa77cd1c2525c27145c4)
* r3259: expanded the RAW-SEARCH test some moreAndrew Tridgell2007-10-101-2/+4
| | | | (This used to be commit cc58d249f973397bf800c9b56a5d4ab30fcda2b4)
* r3258: fixed "don't change" attribute for RAW_SFILEINFO_BASIC_INFOAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 51f84800d50f44ec47a34e1c922c6197eb794558)
* r3257: make the RAW-SEARCH test less sensitive to the servers directory orderingAndrew Tridgell2007-10-101-6/+7
| | | | (This used to be commit 097823bbde94da2a9d9d2afef3a4ed2715bb1f04)
* r3256: get rid of the unused session_claim() and session_yield() callsAndrew Tridgell2007-10-103-25/+0
| | | | (This used to be commit f1c5be396b62203fb183431ea6218eed38976d0b)
* r3255: - fixed 2 uninitialised data errors found with valgrindAndrew Tridgell2007-10-102-2/+5
| | | | | - fixed offset of setup words in nttrans reply (This used to be commit 86b5118c2ae605560a196ee014b6134ec2928c5b)
* r3254: - expanded the RAW-IOCTL testAndrew Tridgell2007-10-103-11/+11
| | | | | | | - fixed the old ioctl interface to not check handle before failing - pvs now passes RAW-IOCTL (This used to be commit 98f6dbdba46c907039951559ec5f526410fd0039)
* r3253: - added rudimentary support for ntioctl in pvfsAndrew Tridgell2007-10-104-9/+97
| | | | | | | | | | - catch the SIGXFSZ signal, which for some completely insane reason is generated in current Linux systems when you write before the maximum offset in a file (maximum is 2^41 on my box). Why wasn't errno good enough for this? - give the right ntstatus code for large offset write failures (This used to be commit 367f0c2af409e4292f727e8a865762a008fd7e67)
* r3252: pvfs now passes BASE-TRANS2Andrew Tridgell2007-10-101-2/+2
| | | | (This used to be commit a024cef2d078e6bf0ebd2a9272faf2bd39e66ee7)
* r3251: - move the openattr test code into basic/attr.cAndrew Tridgell2007-10-104-281/+310
| | | | | | - cleaned up the RAW-WRITE test so it passes against w2k3, and gives more useful error messages (This used to be commit d4042c4364b571b9425e1706fc765376160c8a60)