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 | 2e1e5719f188a933e6b691fbd48037a0d29497e4 (patch) | |
tree | e8780a578370b5ab07201083878034c0b2c96b94 | |
parent | 9c3b8533fc6d2a68e013668d0927d479f4ab58dd (diff) | |
download | samba-2e1e5719f188a933e6b691fbd48037a0d29497e4.tar.gz |
Don't use EDQUOT on systems where it's not available
-rw-r--r-- | source/libsmb/clierror.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/libsmb/clierror.c b/source/libsmb/clierror.c index 4f80f274d98..b66a6bcba8e 100644 --- a/source/libsmb/clierror.c +++ b/source/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}, |