diff options
author | jkar8572 <jkar8572> | 2001-08-22 21:17:56 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2001-08-22 21:17:56 +0000 |
commit | 94a0d407495f21eec4566adca221a07b87583d38 (patch) | |
tree | 810fe406f41e8c46dce48fe6f695fc1a51ac849b /quotaio_v1.c | |
parent | 8aaad9540966c73ae67a5065abbbc55391614479 (diff) | |
download | linuxquota-94a0d407495f21eec4566adca221a07b87583d38.tar.gz |
Implemented better error handling of RPC calls.
Implemented better host access handling (from nfsutils rquotad).
Diffstat (limited to 'quotaio_v1.c')
-rw-r--r-- | quotaio_v1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/quotaio_v1.c b/quotaio_v1.c index 93b77b8..db09199 100644 --- a/quotaio_v1.c +++ b/quotaio_v1.c @@ -34,7 +34,7 @@ #ident "$Copyright: (c) 1980, 1990 Regents of the University of California. $" #ident "$Copyright: All rights reserved. $" -#ident "$Id: quotaio_v1.c,v 1.7 2001/08/15 20:13:42 jkar8572 Exp $" +#ident "$Id: quotaio_v1.c,v 1.8 2001/08/22 21:17:56 jkar8572 Exp $" #include <unistd.h> #include <errno.h> @@ -220,8 +220,7 @@ static struct dquot *v1_read_dquot(struct quota_handle *h, qid_t id) if (QIO_ENABLED(h)) { /* Does kernel use the file? */ struct v1_kern_dqblk kdqblk; - if (quotactl(QCMD(Q_V1_GETQUOTA, h->qh_type), h->qh_quotadev, id, (void *)&kdqblk) < - 0) { + if (quotactl(QCMD(Q_V1_GETQUOTA, h->qh_type), h->qh_quotadev, id, (void *)&kdqblk) < 0) { free(dquot); return NULL; } |