summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-05 02:45:50 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-05 02:45:50 +0000
commitecb7ee7a034961a38a2922f481a3235c615903bd (patch)
tree65748b63c159dbc3999a150e776503a81e72e20f /source3/libsmb
parent92b21b3e82d0c559ef41d40d13c3b790d14daa65 (diff)
downloadsamba-ecb7ee7a034961a38a2922f481a3235c615903bd.tar.gz
samba-ecb7ee7a034961a38a2922f481a3235c615903bd.tar.bz2
samba-ecb7ee7a034961a38a2922f481a3235c615903bd.zip
handle ENOTDIR errno in cli_error()
(This used to be commit f1d82e02ff7f2201de5fb13af4cadec648765017)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 100e90160d..46da08bb3a 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -2287,6 +2287,7 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num)
case NT_STATUS_ACCESS_DENIED: return EACCES;
case NT_STATUS_OBJECT_NAME_NOT_FOUND: return ENOENT;
case NT_STATUS_SHARING_VIOLATION: return EBUSY;
+ case NT_STATUS_OBJECT_PATH_INVALID: return ENOTDIR;
}
/* for all other cases - a default code */
@@ -2303,6 +2304,7 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num)
if (rcls == ERRDOS) {
switch (code) {
case ERRbadfile: return ENOENT;
+ case ERRbadpath: return ENOTDIR;
case ERRnoaccess: return EACCES;
}
}