bbaumbach/samba-autobuild/.git
16 years agor3285: fixed another IDL typo
Andrew Tridgell [Wed, 27 Oct 2004 05:22:10 +0000 (05:22 +0000)]
r3285: fixed another IDL typo
(This used to be commit 4545ac9bfabf4af4b44cb72f30ed93273d9cdc37)

16 years agor3284: - don't use a enum for bit-fields. It isn't legal C (as C is limited to
Andrew Tridgell [Wed, 27 Oct 2004 05:20:00 +0000 (05:20 +0000)]
r3284: - don't use a enum for bit-fields. It isn't legal C (as C is limited to
  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)

16 years agor3283: converted to quoted uuid() defines in all our IDL. This should help
Andrew Tridgell [Wed, 27 Oct 2004 04:48:41 +0000 (04:48 +0000)]
r3283: converted to quoted uuid() defines in all our IDL. This should help
the build on systems like solaris with the SunPRO compiler
(This used to be commit fe913ad11bf1c5e9fe04ed769a93b0ea16aa0a34)

16 years agor3282: some C pre-processors don't like expressions like
Andrew Tridgell [Wed, 27 Oct 2004 04:43:01 +0000 (04:43 +0000)]
r3282: some C pre-processors don't like expressions like
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)

16 years agor3281: some compilers can't handle empty structures, so for empty IDL
Andrew Tridgell [Wed, 27 Oct 2004 04:33:36 +0000 (04:33 +0000)]
r3281: some compilers can't handle empty structures, so for empty IDL
structures generate a single _empty_ element in the header
(This used to be commit 00ff1ca1d284bb698e98c773b18a29695e927605)

16 years agor3280: fixed byte order of rhs IP
Andrew Tridgell [Wed, 27 Oct 2004 03:50:52 +0000 (03:50 +0000)]
r3280: fixed byte order of rhs IP
(This used to be commit 29fab12d0b1649046ab2abb08b51f9845c8f8116)

16 years agor3279: Removed MSG_DONTWAIT flags as many platform don't have it.
Andrew Tridgell [Wed, 27 Oct 2004 03:45:35 +0000 (03:45 +0000)]
r3279: Removed MSG_DONTWAIT flags as many platform don't have it.

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)

16 years agor3278: - rewrote the client side rpc connection code to use lib/socket/
Andrew Tridgell [Wed, 27 Oct 2004 03:15:42 +0000 (03:15 +0000)]
r3278: - rewrote the client side rpc connection code to use lib/socket/
  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)

16 years agor3277: don't use the non-portable getaddrinfo() function, instead use
Andrew Tridgell [Wed, 27 Oct 2004 01:30:59 +0000 (01:30 +0000)]
r3277: don't use the non-portable getaddrinfo() function, instead use
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)

16 years agor3276: - allow for more than 256 open old style searches (limit currently set at...
Andrew Tridgell [Wed, 27 Oct 2004 01:11:44 +0000 (01:11 +0000)]
r3276: - allow for more than 256 open old style searches (limit currently 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)

16 years agor3271: use "struct messaging_context *" instead of "void *" in messaging API
Andrew Tridgell [Tue, 26 Oct 2004 22:45:33 +0000 (22:45 +0000)]
r3271: use "struct messaging_context *" instead of "void *" in messaging API
(This used to be commit cc93813e4a09c538ad485dc2b3cb4c9be34f3d18)

16 years agor3270: - added another unlink test
Andrew Tridgell [Tue, 26 Oct 2004 22:44:28 +0000 (22:44 +0000)]
r3270: - added another unlink test

- removed BASE-TRANS2 from the list of tests to be worked on (its
  already in the "passes" list)
(This used to be commit 8ba10229c3860b955de698c3e2660cf6d18e2f22)

16 years agor3269: fixed return value
Andrew Tridgell [Tue, 26 Oct 2004 22:42:43 +0000 (22:42 +0000)]
r3269: fixed return value
(This used to be commit bc392d88b1fa34edfc922f43e190da003160a7d2)

16 years agor3268: - fixed wildcard handling in new dirlist code
Andrew Tridgell [Tue, 26 Oct 2004 22:25:34 +0000 (22:25 +0000)]
r3268: - fixed wildcard handling in new dirlist code

- ensure that d_name from readdir is not used after closedir
(This used to be commit 5352613342c58192ae00618977041b98cd0ff7b6)

16 years agor3267: make LIBTDB depend on LIBREPLACE. This is needed for building the tdb tools...
Andrew Tridgell [Tue, 26 Oct 2004 21:43:34 +0000 (21:43 +0000)]
r3267: make LIBTDB depend on LIBREPLACE. This is needed for building the tdb tools on Solaris.
(This used to be commit c5d338d06137fe7464849df02671d8ab833e3b4e)

16 years agor3263: - pvfs now passes RAW-SEARCH
Andrew Tridgell [Tue, 26 Oct 2004 13:19:07 +0000 (13:19 +0000)]
r3263: - pvfs now passes RAW-SEARCH
(This used to be commit e5a0763655d8ccb929d2bf39bf099449b0dfcee7)

16 years agor3262: - new pvfs_dirlist code that reopens the directory between search
Andrew Tridgell [Tue, 26 Oct 2004 13:18:34 +0000 (13:18 +0000)]
r3262: - new pvfs_dirlist code that reopens the directory between search
  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)

16 years agor3261: added seek to RAW-SEARCH test
Andrew Tridgell [Tue, 26 Oct 2004 13:16:50 +0000 (13:16 +0000)]
r3261: added seek to RAW-SEARCH test
(This used to be commit 05530bfb99011db8a00f5debcf8eec19b5e8a5d6)

16 years agor3260: redid the pvfs_dirlist() interface in preparation for a "keep
Andrew Tridgell [Tue, 26 Oct 2004 11:11:16 +0000 (11:11 +0000)]
r3260: redid the pvfs_dirlist() interface in preparation for a "keep
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)

16 years agor3259: expanded the RAW-SEARCH test some more
Andrew Tridgell [Tue, 26 Oct 2004 11:10:02 +0000 (11:10 +0000)]
r3259: expanded the RAW-SEARCH test some more
(This used to be commit cc58d249f973397bf800c9b56a5d4ab30fcda2b4)

16 years agor3258: fixed "don't change" attribute for RAW_SFILEINFO_BASIC_INFO
Andrew Tridgell [Tue, 26 Oct 2004 09:52:00 +0000 (09:52 +0000)]
r3258: fixed "don't change" attribute for RAW_SFILEINFO_BASIC_INFO
(This used to be commit 51f84800d50f44ec47a34e1c922c6197eb794558)

16 years agor3257: make the RAW-SEARCH test less sensitive to the servers directory ordering
Andrew Tridgell [Tue, 26 Oct 2004 09:50:13 +0000 (09:50 +0000)]
r3257: make the RAW-SEARCH test less sensitive to the servers directory ordering
(This used to be commit 097823bbde94da2a9d9d2afef3a4ed2715bb1f04)

16 years agor3256: get rid of the unused session_claim() and session_yield() calls
Andrew Tridgell [Tue, 26 Oct 2004 09:32:11 +0000 (09:32 +0000)]
r3256: get rid of the unused session_claim() and session_yield() calls
(This used to be commit f1c5be396b62203fb183431ea6218eed38976d0b)

16 years agor3255: - fixed 2 uninitialised data errors found with valgrind
Andrew Tridgell [Tue, 26 Oct 2004 09:31:11 +0000 (09:31 +0000)]
r3255: - fixed 2 uninitialised data errors found with valgrind

- fixed offset of setup words in nttrans reply
(This used to be commit 86b5118c2ae605560a196ee014b6134ec2928c5b)

16 years agor3254: - expanded the RAW-IOCTL test
Andrew Tridgell [Tue, 26 Oct 2004 08:41:12 +0000 (08:41 +0000)]
r3254: - expanded the RAW-IOCTL test

- fixed the old ioctl interface to not check handle before failing

- pvs now passes RAW-IOCTL
(This used to be commit 98f6dbdba46c907039951559ec5f526410fd0039)

16 years agor3253: - added rudimentary support for ntioctl in pvfs
Andrew Tridgell [Tue, 26 Oct 2004 08:35:29 +0000 (08:35 +0000)]
r3253: - added rudimentary support for ntioctl in pvfs

- 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)

16 years agor3252: pvfs now passes BASE-TRANS2
Andrew Tridgell [Tue, 26 Oct 2004 08:33:04 +0000 (08:33 +0000)]
r3252: pvfs now passes BASE-TRANS2
(This used to be commit a024cef2d078e6bf0ebd2a9272faf2bd39e66ee7)

16 years agor3251: - move the openattr test code into basic/attr.c
Andrew Tridgell [Tue, 26 Oct 2004 08:32:16 +0000 (08:32 +0000)]
r3251: - move the openattr test code into basic/attr.c

- cleaned up the RAW-WRITE test so it passes against w2k3, and gives
  more useful error messages
(This used to be commit d4042c4364b571b9425e1706fc765376160c8a60)

16 years agor3250: Add idl for printer info level 0.
Tim Potter [Tue, 26 Oct 2004 07:17:23 +0000 (07:17 +0000)]
r3250: Add idl for printer info level 0.
(This used to be commit 68cd0b82e9a829dee0264523f2f2bdd37d479371)

16 years agor3249: - change_time is closer to ctime than mtime
Andrew Tridgell [Tue, 26 Oct 2004 07:11:49 +0000 (07:11 +0000)]
r3249: - change_time is closer to ctime than mtime

- pvfs now passes the RAW-CLOSE test
(This used to be commit 98aea91ce67a0c64a98537bfe244495f10672323)

16 years agor3248: don't stop searches on failed fill_search_info()
Andrew Tridgell [Tue, 26 Oct 2004 07:04:45 +0000 (07:04 +0000)]
r3248: don't stop searches on failed fill_search_info()
(This used to be commit 4cdd750b5cc9b26dbbaebe58b4f1c3984dac8d6c)

16 years agor3247: FILE_ATTRIBUTE_NORMAL is only a null-op for setattr and setattre, not basic_info
Andrew Tridgell [Tue, 26 Oct 2004 07:04:10 +0000 (07:04 +0000)]
r3247: FILE_ATTRIBUTE_NORMAL is only a null-op for setattr and setattre, not basic_info
(This used to be commit 36286e477c9bc7b6e268fffb123b565b6e897a44)

16 years agor3246: new files should get created with FILE_ATTRIBUTE_ARCHIVE
Andrew Tridgell [Tue, 26 Oct 2004 07:03:12 +0000 (07:03 +0000)]
r3246: new files should get created with FILE_ATTRIBUTE_ARCHIVE
(This used to be commit 090574c6982f703b124a5a123d2199be8f5b3968)

16 years agor3245: use __location__ in RAW-SEARCH
Andrew Tridgell [Tue, 26 Oct 2004 07:02:30 +0000 (07:02 +0000)]
r3245: use __location__ in RAW-SEARCH
(This used to be commit 3d5f7f4ac49227369eced4b7fe9fe3a8e5ecafbb)

16 years agor3244: pvfs now passes the RAW-UNLINK and RAW-READ tests
Andrew Tridgell [Tue, 26 Oct 2004 06:20:28 +0000 (06:20 +0000)]
r3244: pvfs now passes the RAW-UNLINK and RAW-READ tests
(This used to be commit 230ec4d980534631ff736d5319f3e94357680d85)

16 years agor3243: read the high offset count in SMBreadx in the server
Andrew Tridgell [Tue, 26 Oct 2004 06:19:50 +0000 (06:19 +0000)]
r3243: read the high offset count in SMBreadx in the server
(This used to be commit 977bc87d18d2ea8c6967bd8c1b953b09fff9b434)

16 years agor3242: make the RAW-READ test not exercise the 0-0 lock, which is not deterministic
Andrew Tridgell [Tue, 26 Oct 2004 06:18:56 +0000 (06:18 +0000)]
r3242: make the RAW-READ test not exercise the 0-0 lock, which is not deterministic
(This used to be commit ecd4e315b99a0f2aa021937308c7b93c33efbd93)

16 years agor3241: don't skip the read completely for a zero-length read, as it could give a...
Andrew Tridgell [Tue, 26 Oct 2004 06:17:52 +0000 (06:17 +0000)]
r3241: don't skip the read completely for a zero-length read, as it could give a lock conflict
(This used to be commit 7ce6139f984c72a6347c7a64d95d5278bcf3e868)

16 years agor3240: - update the rules for what error codes should be given on the
Andrew Tridgell [Tue, 26 Oct 2004 05:39:54 +0000 (05:39 +0000)]
r3240: - update the rules for what error codes should be given on the
  different type of unlink an seach mismatches

- wildcard directory listings that have attribute
  FILE_ATTRIBUTE_DIRECTORY and match "." or ".." should be failed.

- don't set the write_time on SMBclose unless it is non-zero

- added much better support for setfileinfo and setpathinfo in pvfs

- better (and more efficient) handling of .. and . components in filenames
(This used to be commit 9305b07af395a158cb9f0c1c9486f7122c79d357)

16 years agor3239: reads of more than UINT16_MAX bytes should return 0 bytes
Andrew Tridgell [Tue, 26 Oct 2004 05:36:14 +0000 (05:36 +0000)]
r3239: reads of more than UINT16_MAX bytes should return 0 bytes
(This used to be commit 16c7dd641707b6b8b3159290ca9fa08053a10692)

16 years agor3238: rename null_mtime() to the more accurate name "null_time()", and
Andrew Tridgell [Tue, 26 Oct 2004 05:35:26 +0000 (05:35 +0000)]
r3238: rename null_mtime() to the more accurate name "null_time()", and
expose it for use by the posix backend
(This used to be commit 687633b5d68c8f883a4d9cdd92c660dabc5d7cfa)

16 years agor3237: - allow for readx calls larger than 64k
Andrew Tridgell [Tue, 26 Oct 2004 05:34:35 +0000 (05:34 +0000)]
r3237: - allow for readx calls larger than 64k

- combine setattre and standard levels in setfileinfo, as they use the
  same structure
(This used to be commit e9aa1f789955533aca4fe43d5d74ffa1e8d1300b)

16 years agor3236: test a few more combinations in RAW-UNLINK
Andrew Tridgell [Tue, 26 Oct 2004 05:33:23 +0000 (05:33 +0000)]
r3236: test a few more combinations in RAW-UNLINK
(This used to be commit 5b239ad57be93fabd50760b12878e32df53e939d)

16 years agor3235: try readx beyond 64k in RAW-READ
Andrew Tridgell [Tue, 26 Oct 2004 05:32:57 +0000 (05:32 +0000)]
r3235: try readx beyond 64k in RAW-READ
(This used to be commit e07c557eca19c0dc17473090bde45c27953aaf65)

16 years agor3234: in SMBreadx, if the client asks for exactly 65535 bytes then don't try
Andrew Tridgell [Tue, 26 Oct 2004 05:32:11 +0000 (05:32 +0000)]
r3234: in SMBreadx, if the client asks for exactly 65535 bytes then don't try
to align the buffer, as that would make the read reply not fit
(This used to be commit 70be45de05993d386ceaf54325d1c3023008eaed)

16 years agor3227: added a per-share option "case insensitive filesystem", that tells the
Andrew Tridgell [Tue, 26 Oct 2004 00:59:06 +0000 (00:59 +0000)]
r3227: added a per-share option "case insensitive filesystem", that tells the
backend that the underlying filesystem is case insensitive, so it can
bypass the directory search if the name is not found.
(This used to be commit d84ade90ce7e03ec749d6ae8dcdcb41de85d836e)

16 years agor3224: add the LOCAL-* tests to test_posix.sh
Andrew Tridgell [Mon, 25 Oct 2004 23:27:11 +0000 (23:27 +0000)]
r3224: add the LOCAL-* tests to test_posix.sh
(This used to be commit b2bdde6d14e61f8ad9e7cbb28efb97ce1bc1ec67)

16 years agor3223: continue the effort on LIBREPLACE to try to get the ldb tools to
Andrew Tridgell [Mon, 25 Oct 2004 23:26:13 +0000 (23:26 +0000)]
r3223: continue the effort on LIBREPLACE to try to get the ldb tools to
compile on platforms like solaris without having to link to the whole
of the Samba4 lib directory.
(This used to be commit f6862bfc1cbc9278914b4b73365f63d3da0a08dd)

16 years agor3219: Hi, Andrew B.!
Volker Lendecke [Mon, 25 Oct 2004 17:23:21 +0000 (17:23 +0000)]
r3219: Hi, Andrew B.!

Not sure which Samba3 you mean, but *my* one bails out with
INVALID_PARAMETER...

Volker
(This used to be commit d91659b0370a6bd5eebd5730d304b5a2cf496594)

16 years agor3218: Fix the build
Volker Lendecke [Mon, 25 Oct 2004 15:19:19 +0000 (15:19 +0000)]
r3218: Fix the build
(This used to be commit 478ba629158e8ce5e15467105b1013ba60f04ec1)

16 years agor3217: Start of a spoolss_GetPrinter test.
Tim Potter [Mon, 25 Oct 2004 13:06:31 +0000 (13:06 +0000)]
r3217: Start of a spoolss_GetPrinter test.
(This used to be commit 994fe92febe38f06d69f43b01c80e8350e902986)

16 years agor3216: Add tests for OpenPrinterEx and ClosePrinter.
Tim Potter [Mon, 25 Oct 2004 12:54:52 +0000 (12:54 +0000)]
r3216: Add tests for OpenPrinterEx and ClosePrinter.
(This used to be commit b7ff5f0deded4bcf6695dac0683fd9d271d9c255)

16 years agor3215: access_required -> access_mask for OpenPrinterEx
Tim Potter [Mon, 25 Oct 2004 12:44:53 +0000 (12:44 +0000)]
r3215: access_required -> access_mask for OpenPrinterEx
(This used to be commit 6a9e18528ca29c7f9bf093a6890e0c0e2a1c0f68)

16 years agor3214: Load the config file (required for ncacn_np:)
Jelmer Vernooij [Mon, 25 Oct 2004 11:55:13 +0000 (11:55 +0000)]
r3214: Load the config file (required for ncacn_np:)
(This used to be commit 636d209814d5b837af76acf88fa8ad5b449a0fdd)

16 years agor3213: Make credentials in a binding dialog optional
Jelmer Vernooij [Mon, 25 Oct 2004 11:47:29 +0000 (11:47 +0000)]
r3213: Make credentials in a binding dialog optional
Small fixes in gepdump
(This used to be commit a9473750f65d331c52acde58485aca66b16d1f75)

16 years agor3212: Never put a hostname in a ncalrpc binding string
Jelmer Vernooij [Mon, 25 Oct 2004 11:33:29 +0000 (11:33 +0000)]
r3212: Never put a hostname in a ncalrpc binding string
(This used to be commit 4808b2a2f749b2e4615620aa328d2d37e78e95ab)

16 years agor3211: Add a graphical endpoint mapper view tool
Jelmer Vernooij [Mon, 25 Oct 2004 11:28:09 +0000 (11:28 +0000)]
r3211: Add a graphical endpoint mapper view tool
(This used to be commit 71dfc27b8efb3057c4b7383feca0ba35ab5768a4)

16 years agor3210: split lib/replace.o into a separate build subsystem LIBREPLACE, and
Andrew Tridgell [Mon, 25 Oct 2004 10:25:25 +0000 (10:25 +0000)]
r3210: split lib/replace.o into a separate build subsystem LIBREPLACE, and
make the ldb tools depend on it. This should help the build of the ldb
tools on platforms without strnlen() or strndup()
(This used to be commit e6ddb9d8f3a218b22b0176a2525b5daaca7170e4)

16 years agor3209: - Create directory for ncalrpc with correct mode
Jelmer Vernooij [Mon, 25 Oct 2004 10:21:41 +0000 (10:21 +0000)]
r3209: - Create directory for ncalrpc with correct mode
- Support binding strings like :

ncacn_np:[sign]
ncacn_np:myhost[seal,sign,endpoint]

again
(This used to be commit b53f4cd1697345065c7d979ba63237bf828dc07f)

16 years agor3208: fixed permissions of ncalrpc directory creation
Andrew Tridgell [Mon, 25 Oct 2004 09:41:24 +0000 (09:41 +0000)]
r3208: fixed permissions of ncalrpc directory creation
(This used to be commit adbfd206f4e077ed915a014e89a970470b43e125)

16 years agor3207: - reformat error msgs in BASE-DIR* tests
Andrew Tridgell [Mon, 25 Oct 2004 07:58:47 +0000 (07:58 +0000)]
r3207: - reformat error msgs in BASE-DIR* tests

- added support for mandatory attributes in old style directory search

- we now pass BASE-DIR1 and BASE-DIR2
(This used to be commit efaa0eaec49e952aa515c3448246d9048a484c26)

16 years agor3206: - added the reverse map for ERRbaduid to NT_STATUS_INVALID_HANDLE
Andrew Tridgell [Mon, 25 Oct 2004 07:56:48 +0000 (07:56 +0000)]
r3206: - added the reverse map for ERRbaduid to NT_STATUS_INVALID_HANDLE

- force disable spnego in the RAW-CONTEXT test (it breaks the test)
(This used to be commit 3f247ec21c59af92b420a3e550552b5a1f1f08e2)

16 years agor3205: Create ncalrpc directory if it didn't exist yet
Jelmer Vernooij [Mon, 25 Oct 2004 07:55:08 +0000 (07:55 +0000)]
r3205: Create ncalrpc directory if it didn't exist yet
(This used to be commit 1161c33794cdb16a3d09a66258f46e0020c4aeef)

16 years agor3204: Got unpacking of an array of PrinterInfo union elements working. Phew.
Tim Potter [Mon, 25 Oct 2004 07:31:59 +0000 (07:31 +0000)]
r3204: Got unpacking of an array of PrinterInfo union elements working.  Phew.
(This used to be commit f490cd719cc02589e73e26fa983aff90708d1926)

16 years agor3203: moved more test functions into torture/basic/*.c
Andrew Tridgell [Mon, 25 Oct 2004 07:24:46 +0000 (07:24 +0000)]
r3203: moved more test functions into torture/basic/*.c

the idea is that torture/torture.c should eventually be just the
harness code, which will make it easier to read
(This used to be commit eca85d26ed744563d1bbb8dd10a819d39fdc495b)

16 years agor3202: return a old DOS error code ERRSRV:ERRbaduid for a bad vuid. This means we...
Andrew Tridgell [Mon, 25 Oct 2004 07:11:12 +0000 (07:11 +0000)]
r3202: return a old DOS error code ERRSRV:ERRbaduid for a bad vuid. This means we now pass the BASE-VUID test.
(This used to be commit 560300c0025940d84c9be41447145f4b441e7105)

16 years agor3201: we now pass the BASE-OPEN test
Andrew Tridgell [Mon, 25 Oct 2004 07:04:03 +0000 (07:04 +0000)]
r3201: we now pass the BASE-OPEN test
(This used to be commit 3a150ab57e18ac5180d48c7edff8a5bc288c39c5)

16 years agor3200: - improved the accuracy of openx emulation. We now nearly pass the openx porti...
Andrew Tridgell [Mon, 25 Oct 2004 07:03:15 +0000 (07:03 +0000)]
r3200: - improved the accuracy of openx emulation. We now nearly pass the openx portion of RAW-OPEN

- fixed directory size reporting to make it consistent. we now pass
  the ntcreatex portion of RAW-OPEN
(This used to be commit 6282e5811b8d4f1c17152d86875ac60d1323779d)

16 years agor3199: added a couple more test paths to RAW-CHKPATH
Andrew Tridgell [Mon, 25 Oct 2004 07:01:45 +0000 (07:01 +0000)]
r3199: added a couple more test paths to RAW-CHKPATH
(This used to be commit 17f10a39c858a5a6e128f3f827d83687c5ba7d90)

16 years agor3198: check for too many .. components in filenames
Andrew Tridgell [Mon, 25 Oct 2004 06:23:28 +0000 (06:23 +0000)]
r3198: check for too many .. components in filenames

pvfs now passes RAW-MKDIR
(This used to be commit 41adb385f123b8d4cd3fe2eb03d891b6bdcf2361)

16 years agor3197: fixed error code mapping for ENOTDIR
Andrew Tridgell [Mon, 25 Oct 2004 06:22:29 +0000 (06:22 +0000)]
r3197: fixed error code mapping for ENOTDIR
(This used to be commit 2c852539ed089b584b721a31cd411667bb5669c7)

16 years agor3196: Grr - add more useless dependencies to get swig wrappers to build.
Tim Potter [Mon, 25 Oct 2004 05:52:00 +0000 (05:52 +0000)]
r3196: Grr - add more useless dependencies to get swig wrappers to build.
(This used to be commit cc3f71c4658de6bb8216905d7657f6217dc55ba0)

16 years agor3195: fill in more of the fsinfo fields, and avoid calling the potentially
Andrew Tridgell [Mon, 25 Oct 2004 05:44:00 +0000 (05:44 +0000)]
r3195: fill in more of the fsinfo fields, and avoid calling the potentially
expensive sys_fsusage() call unless we really need to
(This used to be commit 57eb14773b1811fbab2c37d1ff815c1ab07b3685)

16 years agor3194: fixed an uninitialised variable
Andrew Tridgell [Mon, 25 Oct 2004 05:28:18 +0000 (05:28 +0000)]
r3194: fixed an uninitialised variable
(This used to be commit 8123cfc59edb7b455c7f6511480f0faeb4c9aba8)

16 years agor3193: improved the initial permissions choice for file create, based upon dos attribute
Andrew Tridgell [Mon, 25 Oct 2004 05:27:49 +0000 (05:27 +0000)]
r3193: improved the initial permissions choice for file create, based upon dos attribute
(This used to be commit f6fb1e3493a2a0734747f769cd1013215d967cde)

16 years agor3192: make sure we don't call pvfs_can_delete() until after we have confirmed that...
Andrew Tridgell [Mon, 25 Oct 2004 05:27:15 +0000 (05:27 +0000)]
r3192: make sure we don't call pvfs_can_delete() until after we have confirmed that name->exists
it true
(This used to be commit d368d2f4fe23bdc13f6b9bbdc044dd158ab61169)

16 years agor3191: use __location__ in RAW-UNLINK test
Andrew Tridgell [Mon, 25 Oct 2004 05:26:23 +0000 (05:26 +0000)]
r3191: use __location__ in RAW-UNLINK test
(This used to be commit fb1929743aae5ca758ee6757aaf772754459f683)

16 years agor3190: When we don't have a PAC, do a lookup in the local ldb instead.
Andrew Bartlett [Mon, 25 Oct 2004 04:25:29 +0000 (04:25 +0000)]
r3190: When we don't have a PAC, do a lookup in the local ldb instead.

This required reworking the auth_sam code, so that it would export the
'name -> server_info' functionality.  It's a bit ugly from a modular
point of view, but it's what we have to do...

Fix up some of the code to better use the new talloc()

Andrew Bartlett
(This used to be commit 18e08b4497ebabc2f31210254e145458b7c6a198)

16 years agor3189: improved the share_conflict() logic (both in terms of readability and
Andrew Tridgell [Mon, 25 Oct 2004 04:24:58 +0000 (04:24 +0000)]
r3189: improved the share_conflict() logic (both in terms of readability and
correctness). pvfs now passes the BASE-RENAME test.
(This used to be commit 4cf3f65a5c19fdad62a0bdef225b2d9002cf8c8b)

16 years agor3188: tidy up the rename test a bit more
Andrew Tridgell [Mon, 25 Oct 2004 04:24:06 +0000 (04:24 +0000)]
r3188: tidy up the rename test a bit more
(This used to be commit 3f6077591646d70ab544fb44a93333c05338dbfa)

16 years agor3187: This 'optional' part of the ASN.1 in SPNEGO is required by Samba3 (but
Andrew Bartlett [Mon, 25 Oct 2004 04:21:41 +0000 (04:21 +0000)]
r3187: This 'optional' part of the ASN.1 in SPNEGO is required by Samba3 (but
not Microsoft).  Unfortunetly it's harder to fix Samba3 than to make
Samba4 cope...

Andrew Bartlett
(This used to be commit bbd52ab2641d5d6fc184235ac838ce4a022174a9)

16 years agor3186: Use the properties of the new talloc() system to handle the auth
Andrew Bartlett [Mon, 25 Oct 2004 04:19:02 +0000 (04:19 +0000)]
r3186: Use the properties of the new talloc() system to handle the auth
session info and server info structures.

Andrew Bartlett
(This used to be commit 5bdf391b3bc10291739f5640be9a404dbbeda273)

16 years agor3185: Machines can login with krb5, so we need to allow them to map to a unix account.
Andrew Bartlett [Mon, 25 Oct 2004 04:16:57 +0000 (04:16 +0000)]
r3185: Machines can login with krb5, so we need to allow them to map to a unix account.

Andrew Bartlett
(This used to be commit fbe932ddd4282c3d8af8a28fdd0cee83d0c8f4f3)

16 years agor3184: don't setup socket options on unix domain sockets (our smb.conf socket options...
Andrew Tridgell [Mon, 25 Oct 2004 03:36:00 +0000 (03:36 +0000)]
r3184: don't setup socket options on unix domain sockets (our smb.conf socket options are really meant for tcp)
(This used to be commit 238febb0088f85933c869052f4f83ff31f164df1)

16 years agor3183: moved the unlink of the messaging unixdom socket to the messaging destructor
Andrew Tridgell [Mon, 25 Oct 2004 03:30:39 +0000 (03:30 +0000)]
r3183: moved the unlink of the messaging unixdom socket to the messaging destructor
(This used to be commit ab222b236a091d31b1f5f2cba150a11585ab5836)

16 years agor3182: separate out the BASE-RENAME test into torture/basic/rename.c
Andrew Tridgell [Mon, 25 Oct 2004 02:59:48 +0000 (02:59 +0000)]
r3182: separate out the BASE-RENAME test into torture/basic/rename.c
(This used to be commit c5e72b05d73ff0d57a98b6065bab573e2a226747)

16 years agor3181: shutdown the secrets db on exit so we don't constantly get talloc leak warnings
Andrew Tridgell [Mon, 25 Oct 2004 02:57:20 +0000 (02:57 +0000)]
r3181: shutdown the secrets db on exit so we don't constantly get talloc leak warnings
(This used to be commit 11713da2efc6d45c5594289efa0b6c0e594e6d2e)

16 years agor3180: - basic support for SEC_RIGHT_MAXIMUM_ALLOWED in pvfs
Andrew Tridgell [Mon, 25 Oct 2004 02:36:12 +0000 (02:36 +0000)]
r3180: - basic support for SEC_RIGHT_MAXIMUM_ALLOWED in pvfs

- RAW-CONTEXT test now passes
(This used to be commit 0dae9fef09ec8bce19c39a0caf36e0882e507bc4)

16 years agor3179: - fixed error return on utime failure
Andrew Tridgell [Mon, 25 Oct 2004 01:56:29 +0000 (01:56 +0000)]
r3179: - fixed error return on utime failure

- formatting fix
(This used to be commit 8ca4d7c51e5c76aa28f600d49437a45a8a0d31a9)

16 years agor3178: honor the write_time on pvfs_close()
Andrew Tridgell [Mon, 25 Oct 2004 01:56:01 +0000 (01:56 +0000)]
r3178: honor the write_time on pvfs_close()
(This used to be commit 4e28c45bafa453eaa94716a5b77d830b81efe6cf)

16 years agor3177: check for open files on rename
Andrew Tridgell [Mon, 25 Oct 2004 01:55:38 +0000 (01:55 +0000)]
r3177: check for open files on rename
(This used to be commit c334182095c53b09fcb65a40053b518acb6ec38b)

16 years agor3176: added a script to run all the filesystem torture tests that are
Andrew Tridgell [Mon, 25 Oct 2004 01:49:54 +0000 (01:49 +0000)]
r3176: added a script to run all the filesystem torture tests that are
expected to pass. This allows easy testing for regressions when I
change core routines in the posix backend.
(This used to be commit 867cae746671916c95d18ac4baf8d9604e437202)

16 years agor3175: Add winbind back into includes.h (spotted by tpot)
Andrew Bartlett [Mon, 25 Oct 2004 01:34:56 +0000 (01:34 +0000)]
r3175: Add winbind back into includes.h (spotted by tpot)

Andrew Bartlett
(This used to be commit 2b0f04167d6512c7eaa44f8234f0be63c55f9582)

16 years agor3174: added pvfs_is_open() to allow us to check for open files on unlink. We
Andrew Tridgell [Mon, 25 Oct 2004 01:29:31 +0000 (01:29 +0000)]
r3174: added pvfs_is_open() to allow us to check for open files on unlink. We
now pass BASE-UNLINK.
(This used to be commit f23a2f8538bda8f6790e86c93ee22436388b2975)

16 years agor3173: make the RAW-QFILEINFO test cope better with null strings from the server
Andrew Tridgell [Mon, 25 Oct 2004 01:16:35 +0000 (01:16 +0000)]
r3173: make the RAW-QFILEINFO test cope better with null strings from the server
(This used to be commit a10fca41de7e19e610bf9fd0a854b7b35d652561)

16 years agor3172: much better qfileinfo implementation in pvfs. We now pass RAW-QFILEINFO
Andrew Tridgell [Mon, 25 Oct 2004 01:16:04 +0000 (01:16 +0000)]
r3172: much better qfileinfo implementation in pvfs. We now pass RAW-QFILEINFO
(This used to be commit 65c2c81b8cf6aeeccdc53d8145c2595f230bd531)

16 years agor3171: in qfileinfo getattre and standard have identical structures, so
Andrew Tridgell [Mon, 25 Oct 2004 01:15:16 +0000 (01:15 +0000)]
r3171: in qfileinfo getattre and standard have identical structures, so
simplify code by making them aliases
(This used to be commit 91a1dc121cba77a3400935c199897cde50396cdd)

16 years agor3170: Add winbind client support back into Samba4. This is to allow
Andrew Bartlett [Sun, 24 Oct 2004 23:54:00 +0000 (23:54 +0000)]
r3170: Add winbind client support back into Samba4.  This is to allow
auth_winbind to work, and to therefore use the new ntlm_auth and
GENSEC in an otherwise Samba3 setup.

I'm not quite sure what fun-and games my svn cp caused as I merged
this from samba_3_0, but anyway...

Andrew Bartlett
(This used to be commit 5925b94a59da406d7e6b8cc695c99ba112fdfcd6)

16 years agor3169: unlink() is called on the listening unix socket every time a child process
Jelmer Vernooij [Sun, 24 Oct 2004 23:30:47 +0000 (23:30 +0000)]
r3169: unlink() is called on the listening unix socket every time a child process
exits. Commenting it out until we have a clean way of doing this.
(This used to be commit fa0760dd5fa361be3b72dc4adc8b736e8a862606)

16 years agor3168: Use generic function for looking up endpoints
Jelmer Vernooij [Sun, 24 Oct 2004 23:12:13 +0000 (23:12 +0000)]
r3168: Use generic function for looking up endpoints
(This used to be commit 45a3e2a9815058a3a828c573573c5eee605f9129)