summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Pisar <petr.pisar@atlas.cz>2011-03-14 18:05:36 +0100
committerJan Kara <jack@suse.cz>2011-03-14 18:07:41 +0100
commitbfb0f6643325937698e5b185cd1a0da1923e385f (patch)
tree7de34bb2a9883e7bfef8cf42968a9d5b2e3b8d46
parent418a9f20ee870953790b4331327ccb24ca8f1e47 (diff)
downloadlinuxquota-bfb0f6643325937698e5b185cd1a0da1923e385f.tar.gz
Fix check in setgraces() in setquota.c
The check was the other way around thus making setting of grace times impossible. Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--setquota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setquota.c b/setquota.c
index fe29ec2..c012908 100644
--- a/setquota.c
+++ b/setquota.c
@@ -379,7 +379,7 @@ static int setgraces(struct quota_handle **handles)
int i, ret = 0;
for (i = 0; handles[i]; i++) {
- if (handles[i]->qh_ops->write_info) {
+ if (!handles[i]->qh_ops->write_info) {
errstr(_("Setting grace period on %s is not supported.\n"), handles[i]->qh_quotadev);
ret = -1;
continue;