summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-08-04 06:13:05 +0000
committerTim Potter <tpot@samba.org>2000-08-04 06:13:05 +0000
commita290107aee01a85ca1ef5565f23c8f00e18e98c2 (patch)
treeb69a969050f979d0a5bedb67e415db50a0bdb9fc
parent06a65972e872f37d88b84f22ea714feebd38f6c0 (diff)
downloadsamba-a290107aee01a85ca1ef5565f23c8f00e18e98c2.tar.gz
samba-a290107aee01a85ca1ef5565f23c8f00e18e98c2.tar.xz
samba-a290107aee01a85ca1ef5565f23c8f00e18e98c2.zip
In cli_error() return ENOENT when an ERROR_INVALID_NAME is received instead
of the generic EINVAL.
-rw-r--r--source/libsmb/clierror.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/libsmb/clierror.c b/source/libsmb/clierror.c
index 314b343f252..66bf83cfc57 100644
--- a/source/libsmb/clierror.c
+++ b/source/libsmb/clierror.c
@@ -197,6 +197,7 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num, uint32 *nt_rpc_
case ERRrename: return EEXIST;
case ERRbadshare: return EBUSY;
case ERRlock: return EBUSY;
+ case ERROR_INVALID_NAME: return ENOENT;
}
}
if (rcls == ERRSRV) {