r3197: fixed error code mapping for ENOTDIR
authorAndrew Tridgell <tridge@samba.org>
Mon, 25 Oct 2004 06:22:29 +0000 (06:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:40 +0000 (13:04 -0500)
(This used to be commit 2c852539ed089b584b721a31cd411667bb5669c7)

source4/libcli/util/errormap.c

index 650dc55e50799ea8c8a9e4f9a97af7048b774863..ce7832eaacaa794fc136fa39ab278ef41fd32d5d 100644 (file)
@@ -1498,7 +1498,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_OBJECT_NAME_NOT_FOUND },
-       { ENOTDIR, ERRDOS, ERRbadpath,  NT_STATUS_OBJECT_PATH_NOT_FOUND },
+       { ENOTDIR, ERRDOS, ERRbadpath,  NT_STATUS_NOT_A_DIRECTORY },
        { EIO, ERRHRD, ERRgeneral, NT_STATUS_IO_DEVICE_ERROR },
        { EBADF, ERRSRV, ERRsrverror, NT_STATUS_INVALID_HANDLE },
        { EINVAL, ERRSRV, ERRsrverror, NT_STATUS_INVALID_HANDLE },