summaryrefslogtreecommitdiff
path: root/quotasys.c
diff options
context:
space:
mode:
Diffstat (limited to 'quotasys.c')
-rw-r--r--quotasys.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/quotasys.c b/quotasys.c
index 6ea5713..e6c857b 100644
--- a/quotasys.c
+++ b/quotasys.c
@@ -585,12 +585,15 @@ struct quota_handle **create_handle_list(int count, char **mntpoints, int type,
int dispose_handle_list(struct quota_handle **hlist)
{
int i;
+ int ret = 0;
for (i = 0; hlist[i]; i++)
- if (end_io(hlist[i]) < 0)
+ if (end_io(hlist[i]) < 0) {
errstr(_("Error while releasing file on %s\n"),
hlist[i]->qh_quotadev);
- return 0;
+ ret = -1;
+ }
+ return ret;
}
/*