summaryrefslogtreecommitdiffstats
path: root/sys/netsmb/smb_subr.c
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2002-04-17 03:14:28 +0000
committerbp <bp@FreeBSD.org>2002-04-17 03:14:28 +0000
commit96ac6411fa83e21a9b784642d7c65452c001a57d (patch)
tree80d53bda8bc7a14e561b2d252bb17aa69f64b46a /sys/netsmb/smb_subr.c
parentd45a77858492de9406c19b10d63e68442042e7d2 (diff)
downloadFreeBSD-src-96ac6411fa83e21a9b784642d7c65452c001a57d.zip
FreeBSD-src-96ac6411fa83e21a9b784642d7c65452c001a57d.tar.gz
Recongnize more error codes returned by W2K servers.
MFC after: 4 days
Diffstat (limited to 'sys/netsmb/smb_subr.c')
-rw-r--r--sys/netsmb/smb_subr.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netsmb/smb_subr.c b/sys/netsmb/smb_subr.c
index f4634d4..58fd43e 100644
--- a/sys/netsmb/smb_subr.c
+++ b/sys/netsmb/smb_subr.c
@@ -254,6 +254,8 @@ smb_maperror(int eclass, int eno)
return ENOTEMPTY;
case 183:
return EEXIST;
+ case ERRquota:
+ return EDQUOT;
}
break;
case ERRSRV:
@@ -261,6 +263,7 @@ smb_maperror(int eclass, int eno)
case ERRerror:
return EINVAL;
case ERRbadpw:
+ case ERRpasswordExpired:
return EAUTH;
case ERRaccess:
return EACCES;
@@ -271,8 +274,12 @@ smb_maperror(int eclass, int eno)
return EAUTH;
case 3: /* reserved and returned */
return EIO;
- case 2239: /* NT: account exists but disabled */
+ case ERRaccountExpired:
+ case ERRbadClient:
+ case ERRbadLogonTime:
return EPERM;
+ case ERRnosupport:
+ return EBADRPC;
}
break;
case ERRHRD:
OpenPOWER on IntegriCloud