diff options
-rw-r--r-- | quotaio_xfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quotaio_xfs.c b/quotaio_xfs.c index 2e879e6..903c03e 100644 --- a/quotaio_xfs.c +++ b/quotaio_xfs.c @@ -183,9 +183,9 @@ static int xfs_get_dquot(struct dquot *dq) memset(&d, 0, sizeof(d)); ret = quotactl(qcmd, dq->dq_h->qh_quotadev, dq->dq_id, (void *)&d); if (ret < 0) { - if (ret == -ENOENT) + if (errno == ENOENT) return 0; - return ret; + return -1; } xfs_kern2utildqblk(&dq->dq_dqb, &d); return 0; |