[Samba] Trouble with banking software on Samba share
Jeremy Allison
jra at samba.org
Thu May 9 10:33:02 GMT 2002
On Thu, May 09, 2002 at 11:15:32AM -0600, Mike Babnick wrote:
>
> Jeremy,
> I've taken a Windows client and my person Linux box off of a Cisco switch
> and put them on a hub so my Linux box can see all the packets between the
> Windows client and server. You'll have your packet captures shortly.
Thanks. Actually, your bug report was very good and it got me thinking....
For the open of "binary.exe/2" we were mapping the UNIX error code ENOTDIR
to the NT status code "NT_STATUS_NOT_A_DIRECTORY" which seemed reasonable.
However, I just did some experiments between W2k to W2K (thank goodness
for VMware :-) and found that the error code that NT returns is "NT_STATUS_OBJECT_PATH_NOT_FOUND".
If you could apply the following patch and recompile smbd, then rerun
your test with nt status codes turned on I hope (fingers crossed) that
this *may* fit it....
----------------------cut here------------------------------------------------
Index: lib/error.c
===================================================================
RCS file: /data/cvs/samba/source/lib/error.c,v
retrieving revision 1.2.2.3
diff -u -r1.2.2.3 error.c
--- lib/error.c 2002/02/05 02:36:45 1.2.2.3
+++ lib/error.c 2002/05/09 17:28:29
@@ -27,7 +27,7 @@
{ EPERM, ERRDOS, ERRnoaccess, NT_STATUS_ACCESS_DENIED },
{ EACCES, ERRDOS, ERRnoaccess, NT_STATUS_ACCESS_DENIED },
{ ENOENT, ERRDOS, ERRbadfile, NT_STATUS_NO_SUCH_FILE },
- { ENOTDIR, ERRDOS, ERRbadpath, NT_STATUS_NOT_A_DIRECTORY },
+ { ENOTDIR, ERRDOS, ERRbadpath, NT_STATUS_OBJECT_PATH_NOT_FOUND },
{ EIO, ERRHRD, ERRgeneral, NT_STATUS_IO_DEVICE_ERROR },
{ EBADF, ERRSRV, ERRsrverror, NT_STATUS_INVALID_HANDLE },
{ EINVAL, ERRSRV, ERRsrverror, NT_STATUS_INVALID_HANDLE },
---------------------end cut--------------------------------------------------
Thanks,
Jeremy.
More information about the samba
mailing list