summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-05-09 17:38:23 +0000
committerJeremy Allison <jra@samba.org>2002-05-09 17:38:23 +0000
commit30c80f90ade5f0b6aee777d3da4135ae94e43a60 (patch)
tree85a7c2dc1e9ad0e605971cfa0926de05557eea9b /source3/lib
parent27cd004bf2a6a76a16a7741f7aa97c1f30b3de50 (diff)
downloadsamba-30c80f90ade5f0b6aee777d3da4135ae94e43a60.tar.gz
samba-30c80f90ade5f0b6aee777d3da4135ae94e43a60.tar.bz2
samba-30c80f90ade5f0b6aee777d3da4135ae94e43a60.zip
We were mapping the open of name1/name2 where name1 wasn't a directory
(ie. ENOTDIR) to the NT status code NT_STATUS_NOT_A_DIRECTORY. NT seems to use NT_STATUS_OBJECT_PATH_NOT_FOUND. I'm hoping this will fix the access binaries served from a Samba share bug... Jeremy. (This used to be commit 6f2b76c2394e305e5a282f459b84f94f8ed2082a)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/error.c b/source3/lib/error.c
index 22ac1cb2d7..78db04ecc5 100644
--- a/source3/lib/error.c
+++ b/source3/lib/error.c
@@ -26,7 +26,7 @@ const struct unix_error_map unix_dos_nt_errmap[] = {
{ 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 },