summaryrefslogtreecommitdiff
path: root/quotaops.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2008-12-17 12:40:07 +0000
committerjkar8572 <jkar8572>2008-12-17 12:40:07 +0000
commit830ca0318fc60c8566d76b3961bf9c40e2276569 (patch)
treefd6ac9448e36d836041b0aea7394931bc750e015 /quotaops.c
parent1069b78a6ff95399a5f0ed2b9116f6ab94fb67a1 (diff)
* fix reference to rpc manpage (anonymous reporter)
* add EXT4 (not only EXT4DEV) to the list of supported filesystems (Mingming Cao) * fix setting of more than 31-bit block and inode limits (Gui Xiaohua) * fixed bug in error reporting when quota reading fails (Jan Kara) * added support for quota formats with hidden quota files (Jan Kara)
Diffstat (limited to 'quotaops.c')
-rw-r--r--quotaops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/quotaops.c b/quotaops.c
index b6e1747..f63b043 100644
--- a/quotaops.c
+++ b/quotaops.c
@@ -34,7 +34,7 @@
#ident "$Copyright: (c) 1980, 1990 Regents of the University of California. $"
#ident "$Copyright: All rights reserved. $"
-#ident "$Id: quotaops.c,v 1.21 2008/04/21 15:37:42 jkar8572 Exp $"
+#ident "$Id: quotaops.c,v 1.22 2008/12/17 12:40:07 jkar8572 Exp $"
#include <rpc/rpc.h>
#include <sys/types.h>
@@ -154,9 +154,11 @@ struct dquot *getprivs(qid_t id, struct quota_handle **handles, int quiet)
if (!(q = handles[i]->qh_ops->read_dquot(handles[i], id))) {
/* If rpc.rquotad is not running filesystem might be just without quotas... */
if (errno != ENOENT && (errno != ECONNREFUSED || !quiet)) {
+ int olderrno = errno;
+
id2name(id, handles[i]->qh_type, name);
errstr(_("error while getting quota from %s for %s (id %u): %s\n"),
- handles[i]->qh_quotadev, name, id, strerror(errno));
+ handles[i]->qh_quotadev, name, id, strerror(olderrno));
}
continue;
}