diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-05 02:45:50 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-05 02:45:50 +0000 |
commit | ecb7ee7a034961a38a2922f481a3235c615903bd (patch) | |
tree | 65748b63c159dbc3999a150e776503a81e72e20f /source3 | |
parent | 92b21b3e82d0c559ef41d40d13c3b790d14daa65 (diff) | |
download | samba-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')
-rw-r--r-- | source3/libsmb/clientgen.c | 2 |
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; } } |