diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-03-22 22:04:58 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-03-22 22:04:58 +0000 |
commit | dea7597767e690168e9485dfc2efabaab2dfb4cb (patch) | |
tree | 23b80087c9b770a3d5f9b2cc14164d85fefada32 /source3 | |
parent | c8864235ba97618a63fadeaecf82bbe61c49d20f (diff) | |
download | samba-dea7597767e690168e9485dfc2efabaab2dfb4cb.tar.gz samba-dea7597767e690168e9485dfc2efabaab2dfb4cb.tar.bz2 samba-dea7597767e690168e9485dfc2efabaab2dfb4cb.zip |
Don't use EDQUOT on systems where it's not available
(This used to be commit 2e1e5719f188a933e6b691fbd48037a0d29497e4)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clierror.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c index 4f80f274d9..b66a6bcba8 100644 --- a/source3/libsmb/clierror.c +++ b/source3/libsmb/clierror.c @@ -231,7 +231,12 @@ static struct { {NT_STATUS_UNSUCCESSFUL, EINVAL}, {NT_STATUS_NOT_IMPLEMENTED, ENOSYS}, {NT_STATUS_IN_PAGE_ERROR, EFAULT}, +#ifdef EDQUOT {NT_STATUS_PAGEFILE_QUOTA, EDQUOT}, + {NT_STATUS_QUOTA_EXCEEDED, EDQUOT}, + {NT_STATUS_REGISTRY_QUOTA_LIMIT, EDQUOT}, + {NT_STATUS_LICENSE_QUOTA_EXCEEDED, EDQUOT}, +#endif #ifdef ETIME {NT_STATUS_TIMER_NOT_CANCELED, ETIME}, #endif @@ -252,7 +257,6 @@ static struct { {NT_STATUS_UNABLE_TO_FREE_VM, EADDRINUSE}, {NT_STATUS_ACCESS_DENIED, EACCES}, {NT_STATUS_BUFFER_TOO_SMALL, ENOBUFS}, - {NT_STATUS_QUOTA_EXCEEDED, EDQUOT}, {NT_STATUS_WRONG_PASSWORD, EACCES}, {NT_STATUS_LOGON_FAILURE, EACCES}, {NT_STATUS_INVALID_WORKSTATION, EACCES}, @@ -272,8 +276,6 @@ static struct { {NT_STATUS_HOST_UNREACHABLE, EHOSTUNREACH}, {NT_STATUS_CONNECTION_ABORTED, ECONNABORTED}, {NT_STATUS_CONNECTION_REFUSED, ECONNREFUSED}, - {NT_STATUS_REGISTRY_QUOTA_LIMIT, EDQUOT}, - {NT_STATUS_LICENSE_QUOTA_EXCEEDED, EDQUOT}, {NT_STATUS_TOO_MANY_LINKS, EMLINK}, {NT_STATUS_NETWORK_BUSY, EBUSY}, {NT_STATUS_DEVICE_DOES_NOT_EXIST, ENODEV}, |