View | Details | Raw Unified | Return to bug 233849
Collapse All | Expand All

(-)lib/libutil/quotafile.c (-1 / +1 lines)
Lines 127-132 Link Here
127
		goto error;
127
		goto error;
128
	qf->dev = st.st_dev;
128
	qf->dev = st.st_dev;
129
	qcmd = QCMD(Q_GETQUOTASIZE, quotatype);
129
	qcmd = QCMD(Q_GETQUOTASIZE, quotatype);
130
	serrno = hasquota(fs, quotatype, qf->qfname, sizeof(qf->qfname));
130
	if (quotactl(qf->fsname, qcmd, 0, &qf->wordsize) == 0)
131
	if (quotactl(qf->fsname, qcmd, 0, &qf->wordsize) == 0)
131
		return (qf);
132
		return (qf);
132
	/* We only check the quota file for ufs */
133
	/* We only check the quota file for ufs */
Lines 134-140 Link Here
134
		errno = 0;
135
		errno = 0;
135
		goto error;
136
		goto error;
136
	}
137
	}
137
	serrno = hasquota(fs, quotatype, qf->qfname, sizeof(qf->qfname));
138
	if (serrno == 0) {
138
	if (serrno == 0) {
139
		errno = EOPNOTSUPP;
139
		errno = EOPNOTSUPP;
140
		goto error;
140
		goto error;

Return to bug 233849