diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-05 20:46:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-05 20:46:17 +0000 |
commit | 6c55d3d1b7be2a96caebe6acdeb2b57143583a32 (patch) | |
tree | be29c34fb4c9e7241cf4ef96d07191ab40565a1e | |
parent | b7ec7ef5543b72b7d6d469f7879ac49be3af6b5e (diff) | |
download | samba-6c55d3d1b7be2a96caebe6acdeb2b57143583a32.tar.gz samba-6c55d3d1b7be2a96caebe6acdeb2b57143583a32.tar.xz samba-6c55d3d1b7be2a96caebe6acdeb2b57143583a32.zip |
Fix from "Romeril, Alan" <a.romeril@ic.ac.uk> to get his NFS quota code
to work on Solaris 2.6.
Jeremy.
-rw-r--r-- | source/smbd/quotas.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/smbd/quotas.c b/source/smbd/quotas.c index 75e27f356ad..ccb5534641a 100644 --- a/source/smbd/quotas.c +++ b/source/smbd/quotas.c @@ -278,15 +278,15 @@ static int xdr_getquota_args(XDR *xdrsp, struct getquota_args *args) static int xdr_getquota_rslt(XDR *xdrsp, struct getquota_rslt *gqr) { gqr_status status; - union { + union { rquota gqr_rquota; } getquota_rslt_u; - + if (!xdr_int(xdrsp, "astat)) { DEBUG(6,("nfs_quotas: Status bad or zero\n")); return 0; } - if (!xdr_int32_t(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bsize)) { + if (!xdr_int(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bsize)) { DEBUG(6,("nfs_quotas: Block size bad or zero\n")); return 0; } @@ -294,15 +294,15 @@ static int xdr_getquota_rslt(XDR *xdrsp, struct getquota_rslt *gqr) DEBUG(6,("nfs_quotas: Active bad or zero\n")); return 0; } - if (!xdr_uint32_t(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bhardlimit)) { + if (!xdr_int(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bhardlimit)) { DEBUG(6,("nfs_quotas: Hardlimit bad or zero\n")); return 0; } - if (!xdr_uint32_t(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bsoftlimit)) { + if (!xdr_int(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bsoftlimit)) { DEBUG(6,("nfs_quotas: Softlimit bad or zero\n")); return 0; } - if (!xdr_uint32_t(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_curblocks)) { + if (!xdr_int(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_curblocks)) { DEBUG(6,("nfs_quotas: Currentblocks bad or zero\n")); return 0; } |