jelmer/samba4-debian.git
12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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.

12 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

12 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.

12 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

12 years agor3218: Fix the build
Volker Lendecke [Mon, 25 Oct 2004 15:19:19 +0000 (15:19 +0000)]
r3218: Fix the build

12 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.

12 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.

12 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

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

12 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

12 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

12 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

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

12 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

12 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

12 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

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

12 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

12 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.

12 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

12 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.

12 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

12 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

12 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

12 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

12 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

12 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.

12 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

12 years agor3194: fixed an uninitialised variable
Andrew Tridgell [Mon, 25 Oct 2004 05:28:18 +0000 (05:28 +0000)]
r3194: fixed an uninitialised variable

12 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

12 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

12 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

12 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

12 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.

12 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

12 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

12 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

12 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

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

12 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

12 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

12 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

12 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

12 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

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

12 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

12 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.

12 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

12 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.

12 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

12 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

12 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

12 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

12 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.

12 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

12 years agor3167: Add a member 'endpoint' to the dcerpc_binding struct to use instead of
Jelmer Vernooij [Sun, 24 Oct 2004 22:46:47 +0000 (22:46 +0000)]
r3167: Add a member 'endpoint' to the dcerpc_binding struct to use instead of
options[0].

12 years agor3166: Bunch of small GUI updates. gwcrontab works again, as does selecting a
Jelmer Vernooij [Sun, 24 Oct 2004 17:34:48 +0000 (17:34 +0000)]
r3166: Bunch of small GUI updates. gwcrontab works again, as does selecting a
domain in gwsam

12 years agor3165: Support local connections in Gtk+ tools
Jelmer Vernooij [Sun, 24 Oct 2004 17:06:35 +0000 (17:06 +0000)]
r3165: Support local connections in Gtk+ tools

12 years agor3164: Look up ncalrpc identifiers using the EPMAPPER. ncalrpc now works nicely :-)
Jelmer Vernooij [Sun, 24 Oct 2004 16:31:00 +0000 (16:31 +0000)]
r3164: Look up ncalrpc identifiers using the EPMAPPER. ncalrpc now works nicely :-)
The various interface that support ncalrpc work nicely when tested
with smbtorture and ncalrpc.

Running RPC-SAMR against local smbd here is slightly faster using ncalrpc:
ncalrpc:  1.8 sec
ncacn_ip_tcp: 1.9 sec
ncacn_np: 2.5 sec

12 years agor3163: Add server side support for ncalrpc: and ncacn_unix_stream:
Jelmer Vernooij [Sun, 24 Oct 2004 15:48:19 +0000 (15:48 +0000)]
r3163: Add server side support for ncalrpc: and ncacn_unix_stream:

Examples of binding strings are :

ncalrpc:[EPMAPPER]
ncacn_unix_stream:[/tmp/epmapper]

N.B. The unix socket support in lib/socket/ appears to close and remove the
socket it is listening on after the first client disconnects so until
that has been fixed, it is only possible to do one ncalrpc: or ncacn_unix_stream: request per instance of smbd :-)

Support for looking up NCALRPC names via the endpoint mapper will be added later.

12 years agor3162: Add client-side support for the ncalrpc: and ncacn_unix_stream: transports.
Jelmer Vernooij [Sun, 24 Oct 2004 14:57:16 +0000 (14:57 +0000)]
r3162: Add client-side support for the ncalrpc: and ncacn_unix_stream: transports.

ncalrpc uses the new config option "ncalrpc dir" for creating unix sockets.

12 years agor3161: pvfs now passes the RAW-SEEK test
Andrew Tridgell [Sun, 24 Oct 2004 14:18:03 +0000 (14:18 +0000)]
r3161: pvfs now passes the RAW-SEEK test

12 years agor3160: recognise RAW_SFILEINFO_DISPOSITION_INFORMATION (fixes temporary files from...
Andrew Tridgell [Sun, 24 Oct 2004 13:41:27 +0000 (13:41 +0000)]
r3160: recognise RAW_SFILEINFO_DISPOSITION_INFORMATION (fixes temporary files from excel)

12 years agor3159: use easy to recognise file handle numbers for new file, old file and directory
Andrew Tridgell [Sun, 24 Oct 2004 13:40:49 +0000 (13:40 +0000)]
r3159: use easy to recognise file handle numbers for new file, old file and directory
in pvfs_open, to make analysing sniffs easy

12 years agor3158: Use the new tower build functions to generate protocol towers, making it
Jelmer Vernooij [Sun, 24 Oct 2004 13:30:50 +0000 (13:30 +0000)]
r3158: Use the new tower build functions to generate protocol towers, making it
easier to deal with more different transports.

12 years agor3157: Add ncacn_http
Jelmer Vernooij [Sun, 24 Oct 2004 13:22:58 +0000 (13:22 +0000)]
r3157: Add ncacn_http

12 years agor3156: Couple of fixes in the conversion functions between binding structs and
Jelmer Vernooij [Sun, 24 Oct 2004 13:00:51 +0000 (13:00 +0000)]
r3156: Couple of fixes in the conversion functions between binding structs and
protocol towers

12 years agor3155: reformat a delete test
Andrew Tridgell [Sun, 24 Oct 2004 12:55:12 +0000 (12:55 +0000)]
r3155: reformat a delete test

12 years agor3154: pvfs now passes all of BASE-DELETE
Andrew Tridgell [Sun, 24 Oct 2004 12:53:13 +0000 (12:53 +0000)]
r3154: pvfs now passes all of BASE-DELETE

12 years agor3153: pvfs now passes the first 9 of the BASE-DELETE tests
Andrew Tridgell [Sun, 24 Oct 2004 12:39:15 +0000 (12:39 +0000)]
r3153: pvfs now passes the first 9 of the BASE-DELETE tests

12 years agor3152: reformatted some of the delete test code
Andrew Tridgell [Sun, 24 Oct 2004 12:38:32 +0000 (12:38 +0000)]
r3152: reformatted some of the delete test code

12 years agor3150: printing __location__ is more useful than a operation number
Andrew Tridgell [Sun, 24 Oct 2004 10:27:38 +0000 (10:27 +0000)]
r3150: printing __location__ is more useful than a operation number

12 years agor3149: separate the delete on close test into torture/basic/delete.c
Andrew Tridgell [Sun, 24 Oct 2004 09:08:52 +0000 (09:08 +0000)]
r3149: separate the delete on close test into torture/basic/delete.c

12 years agor3148: make --failures work for the BASE-DENY1 and BASE-DENY2 tests
Andrew Tridgell [Sun, 24 Oct 2004 09:08:17 +0000 (09:08 +0000)]
r3148: make --failures work for the BASE-DENY1 and BASE-DENY2 tests

12 years agor3147: added basic share modes support for pvfs (or more precisely, ntcreatex
Andrew Tridgell [Sun, 24 Oct 2004 08:31:41 +0000 (08:31 +0000)]
r3147: added basic share modes support for pvfs (or more precisely, ntcreatex
share_access support).  This is enough for us to pass the BASE-DENY2
test, but is a long way from fully correct share modes.

12 years agor3142: fill in all the ntcreatex response fields explicitly, rather than
Andrew Tridgell [Sat, 23 Oct 2004 06:22:57 +0000 (06:22 +0000)]
r3142: fill in all the ntcreatex response fields explicitly, rather than
zeroing. This makes it clearer what bits are not yet implemented (and
is more valgrind friendly)

12 years agor3136: - Allow specifying socket type when adding smbd service
Jelmer Vernooij [Fri, 22 Oct 2004 10:52:57 +0000 (10:52 +0000)]
r3136: - Allow specifying socket type when adding smbd service
- Make sure a epm_tower struct is completely initialized
- Some more minor fixes

12 years agor3135: split the "create new" logic out from the "open existing" logic in
Andrew Tridgell [Fri, 22 Oct 2004 07:01:32 +0000 (07:01 +0000)]
r3135: split the "create new" logic out from the "open existing" logic in
pvfs_open, and handle the various race conditions that are inherent in
cifs on unix, so we do the best we can when the race happens.

the ntcreatex code is really starting to take shape now

12 years agor3134: use struct idr_context * in tid allocation
Andrew Tridgell [Fri, 22 Oct 2004 06:57:31 +0000 (06:57 +0000)]
r3134: use struct idr_context * in tid allocation

12 years agor3133: - more consistent error checking in rename and setfileinfo
Andrew Tridgell [Fri, 22 Oct 2004 06:55:18 +0000 (06:55 +0000)]
r3133: - more consistent error checking in rename and setfileinfo

- add paranoid checking of device/inode change during open to detect race conditions

12 years agor3132: - fixed a type conflict found by talloc_array_p()
Andrew Tridgell [Fri, 22 Oct 2004 06:53:18 +0000 (06:53 +0000)]
r3132: - fixed a type conflict found by talloc_array_p()

- use struct idr_context * in ipc code

12 years agor3131: - make map_nt_error_from_unix() return NT_STATUS_UNSUCCESSFUL if errno is 0
Andrew Tridgell [Fri, 22 Oct 2004 06:49:27 +0000 (06:49 +0000)]
r3131: - make map_nt_error_from_unix() return NT_STATUS_UNSUCCESSFUL if errno is 0

- more consistent checking for system call return values in simple backend

12 years agor3130: - added a LOCAL-IDTREE test suite
Andrew Tridgell [Fri, 22 Oct 2004 06:46:04 +0000 (06:46 +0000)]
r3130: - added a LOCAL-IDTREE test suite

- made idtree return a "struct idr_context *" instead of a void*

- more efficient idr_remove for ids that are not present (patch from Jim Houston)

12 years agor3129: typo
Volker Lendecke [Fri, 22 Oct 2004 04:48:24 +0000 (04:48 +0000)]
r3129: typo

12 years agor3128: Return the correct error code for a secrets/kerberos login, but
Andrew Bartlett [Fri, 22 Oct 2004 03:02:51 +0000 (03:02 +0000)]
r3128: Return the correct error code for a secrets/kerberos login, but
skipping 'bad encryption type'.

Andrew Bartlett

12 years agor3127: added the initial code for the open files database. Doesn't do
Andrew Tridgell [Fri, 22 Oct 2004 01:19:07 +0000 (01:19 +0000)]
r3127: added the initial code for the open files database. Doesn't do
anything yet, but will soon be the core of the shares modes code.

12 years agor3126: in the brlock code I had used a void* for the brl context as I didn't
Andrew Tridgell [Fri, 22 Oct 2004 01:14:49 +0000 (01:14 +0000)]
r3126: in the brlock code I had used a void* for the brl context as I didn't
want to expose the brl context structure outside the brlock.c
code. Instead, I now use "struct brl_context *" and rely on C being
happy to pass around pointers to unknown structures as long as they
are not dereferenced. I will be interested to see how the build farm
likes this.

12 years agor3125: Store object UUID directly instead of using a pointer (struct dcerpc_binding)
Jelmer Vernooij [Thu, 21 Oct 2004 21:57:30 +0000 (21:57 +0000)]
r3125: Store object UUID directly instead of using a pointer (struct dcerpc_binding)
Let test fail if messaging_init() fails instead of generating segfault in the LOCAL-MESSAGING test

12 years agor3124: Add dcerpc_binding_from_tower()
Jelmer Vernooij [Thu, 21 Oct 2004 21:02:51 +0000 (21:02 +0000)]
r3124: Add dcerpc_binding_from_tower()
Add tests for dcerpc_binding_from_tower()

12 years agor3123: Add dcerpc_binding_build_tower()
Jelmer Vernooij [Thu, 21 Oct 2004 19:54:38 +0000 (19:54 +0000)]
r3123: Add dcerpc_binding_build_tower()
Add local test for testing the functions dcerpc_parse_binding(),
dcerpc_binding_string() and dcerpc_binding_build_tower()

12 years agor3118: Eliminate struct dcesrv_ep_description and replace it with
Jelmer Vernooij [Thu, 21 Oct 2004 17:40:55 +0000 (17:40 +0000)]
r3118: Eliminate struct dcesrv_ep_description and replace it with
struct dcerpc_binding.

12 years agor3115: Bugfixes and extra debug in our kerberos verify code.
Andrew Bartlett [Thu, 21 Oct 2004 15:24:50 +0000 (15:24 +0000)]
r3115: Bugfixes and extra debug in our kerberos verify code.

Andrew Bartlett

12 years agor3114: - More work on merging the various structs that describe endpoints
Jelmer Vernooij [Thu, 21 Oct 2004 12:47:02 +0000 (12:47 +0000)]
r3114: - More work on merging the various structs that describe endpoints
- Add protocol sequence to dcerpc transports (will be used later on)
- Add more transports to the list